Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Fix wrong resource string used for Content-Length < 0 exception (#26080)
Browse files Browse the repository at this point in the history
Fixes #26060
  • Loading branch information
diamondo25 authored and karelz committed Dec 28, 2017
1 parent b3e0632 commit 3dc80d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System.Net.Requests/src/System/Net/HttpWebRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public override long ContentLength
}
if (value < 0)
{
throw new ArgumentOutOfRangeException(nameof(value), SR.net_io_timeout_use_ge_zero);
throw new ArgumentOutOfRangeException(nameof(value), SR.net_clsmall);
}
SetSpecialHeaders(HttpKnownHeaderNames.ContentLength, value.ToString());
}
Expand Down

0 comments on commit 3dc80d2

Please sign in to comment.