projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #3023 from lambdageek/dev/monoerror-minisig
[mono.git]
/
mcs
/
class
/
System.Net.Http
/
System.Net.Http.Headers
/
HttpContentHeaders.cs
diff --git
a/mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs
b/mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs
index 949b5e69e398aeb21d4a48eb0df2909b6de58f04..023c958f22e9ddb88a7e40b2a749117390f79054 100644
(file)
--- a/
mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs
+++ b/
mcs/class/System.Net.Http/System.Net.Http.Headers/HttpContentHeaders.cs
@@
-78,8
+78,11
@@
namespace System.Net.Http.Headers
return v;
long l;
- if (content.TryComputeLength (out l))
+ if (content.TryComputeLength (out l)) {
+ // .net compatibility reading value actually set header property value
+ SetValue ("Content-Length", l);
return l;
+ }
return null;
}