File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ limitations under the License.
2222using Newtonsoft . Json . Linq ;
2323using TinCan . Documents ;
2424using TinCan . LRSResponses ;
25+ using System . Linq ;
2526
2627namespace TinCan
2728{
@@ -81,7 +82,7 @@ public MyHTTPResponse(HttpWebResponse webResp)
8182 }
8283 }
8384
84- private string AppendParamsToExistingQueryString ( string currentQueryString , Dictionary < string , string > parameters )
85+ private string AppendParamsToExistingQueryString ( string currentQueryString , IEnumerable < KeyValuePair < string , string > > parameters )
8586 {
8687 foreach ( KeyValuePair < String , String > entry in parameters )
8788 {
@@ -113,7 +114,7 @@ private MyHTTPResponse MakeSyncRequest(MyHTTPRequest req)
113114
114115 String qs = "" ;
115116 qs = AppendParamsToExistingQueryString ( qs , req . queryParams ) ;
116- qs = AppendParamsToExistingQueryString ( qs , extended ) ;
117+ qs = AppendParamsToExistingQueryString ( qs , extended . Where ( w => ! req . queryParams . ContainsKey ( w . Key ) ) ) ;
117118
118119 if ( qs != "" )
119120 {
You can’t perform that action at this time.
0 commit comments