Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 0981cff

Browse files
committed
Feedback
1 parent 4043a1c commit 0981cff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.AspNetCore.Http.Extensions/RequestHeaders.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ public long? ContentLength
9797
{
9898
get
9999
{
100-
return Headers.Get<long?>(HeaderNames.ContentLength);
100+
return Headers.ContentLength;
101101
}
102102
set
103103
{
104-
Headers.Set(HeaderNames.ContentLength, value.HasValue ? HeaderUtilities.FormatNonNegativeInt64(value.Value) : null);
104+
Headers.ContentLength = value;
105105
}
106106
}
107107

src/Microsoft.AspNetCore.Http.Extensions/ResponseHeaders.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public long? ContentLength
5050
{
5151
get
5252
{
53-
return Headers.Get<long?>(HeaderNames.ContentLength);
53+
return Headers.ContentLength;
5454
}
5555
set
5656
{
57-
Headers.Set(HeaderNames.ContentLength, value.HasValue ? HeaderUtilities.FormatNonNegativeInt64(value.Value) : null);
57+
Headers.ContentLength = value;
5858
}
5959
}
6060

0 commit comments

Comments
 (0)