@@ -124,7 +124,7 @@ public Listing<Comment> GetComments(Sort sorting = Sort.New, int limit = 25, Fro
124
124
if ( ( limit < 1 ) || ( limit > MAX_LIMIT ) )
125
125
throw new ArgumentOutOfRangeException ( "limit" , "Valid range: [1," + MAX_LIMIT + "]" ) ;
126
126
string commentsUrl = string . Format ( CommentsUrl , Name ) ;
127
- commentsUrl += string . Format ( "?sort={0}&limit={1}&t={2}" , Enum . GetName ( typeof ( Sort ) , sorting ) , limit , Enum . GetName ( typeof ( FromTime ) , fromTime ) ) ;
127
+ commentsUrl += string . Format ( "?sort={0}&limit={1}&t={2}" , Enum . GetName ( typeof ( Sort ) , sorting ) . ToLower ( ) , limit , Enum . GetName ( typeof ( FromTime ) , fromTime ) ) ;
128
128
129
129
return new Listing < Comment > ( Reddit , commentsUrl , WebAgent ) ;
130
130
}
@@ -142,7 +142,7 @@ public Listing<Post> GetPosts(Sort sorting = Sort.New, int limit = 25, FromTime
142
142
if ( ( limit < 1 ) || ( limit > 100 ) )
143
143
throw new ArgumentOutOfRangeException ( "limit" , "Valid range: [1,100]" ) ;
144
144
string linksUrl = string . Format ( LinksUrl , Name ) ;
145
- linksUrl += string . Format ( "?sort={0}&limit={1}&t={2}" , Enum . GetName ( typeof ( Sort ) , sorting ) , limit , Enum . GetName ( typeof ( FromTime ) , fromTime ) ) ;
145
+ linksUrl += string . Format ( "?sort={0}&limit={1}&t={2}" , Enum . GetName ( typeof ( Sort ) , sorting ) . ToLower ( ) , limit , Enum . GetName ( typeof ( FromTime ) , fromTime ) ) ;
146
146
147
147
return new Listing < Post > ( Reddit , linksUrl , WebAgent ) ;
148
148
}
0 commit comments