Skip to content

Commit 034fbdd

Browse files
committed
Merge pull request andyburke#48 from codeMonkeyWang/master
Fixed Request.cs bug
2 parents 45dd8cd + 120de6e commit 034fbdd

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/Request.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ public Request( string method, string uri, WWWForm form )
8989
this.method = method;
9090
this.uri = new Uri (uri);
9191
this.byteStream = new MemoryStream(form.data);
92-
foreach ( DictionaryEntry entry in form.headers )
93-
{
94-
this.AddHeader( (string)entry.Key, (string)entry.Value );
95-
}
96-
92+
foreach ( KeyValuePair<string,string> pair in form.headers )
93+
{
94+
this.AddHeader(pair.Key,pair.Value);
95+
}
9796
}
9897

9998
public Request( string method, string uri, Hashtable data )

0 commit comments

Comments
 (0)