Skip to content

Commit

Permalink
[FIX] issue with content length header
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Oct 8, 2019
1 parent a84eb85 commit cde452f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EmbedIO/Net/Internal/HttpListenerRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Encoding ContentEncoding
}

/// <inheritdoc />
public long ContentLength64 => Headers.ContainsKey(HttpHeaderNames.ContentLength) && long.TryParse(Headers[HttpHeaderNames.ContentLength], out var val) ? val : 0;
public long ContentLength64 => long.TryParse(Headers[HttpHeaderNames.ContentLength], out var val) ? val : 0;

/// <inheritdoc />
public string ContentType => Headers[HttpHeaderNames.ContentType];
Expand Down

0 comments on commit cde452f

Please sign in to comment.