Skip to content

Commit 48ab365

Browse files
authored
Update System.Net.HttpWebRequest.cs
It seems like this comment was forgotten. .AbsolutePath does not include query string whis is getting lost during request
1 parent 7a41d99 commit 48ab365

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nanoFramework.System.Net.Http/Http/System.Net.HttpWebRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,8 @@ private byte[] GetHTTPRequestData()
19481948
}
19491949
else
19501950
{
1951-
statusLine = Method + " " + Address.AbsolutePath + " HTTP/" + ProtocolVersion + "\r\n"; // .PathAndQuery
1951+
// statusLine = Method + " " + Address.AbsolutePath + " HTTP/" + ProtocolVersion + "\r\n"; // .PathAndQuery
1952+
statusLine = Method + " " + Address.PathAndQuery + " HTTP/" + ProtocolVersion + "\r\n";
19521953
}
19531954

19541955
//most intrinsic headers are stored in the webheaders class

0 commit comments

Comments
 (0)