a few typos

This commit is contained in:
UbitUmarov
2021-09-01 16:37:28 +01:00
parent c77fa98640
commit af4dacee53
5 changed files with 10 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ namespace OSHttpServer
/// </summary>
public class HttpRequest : IHttpRequest
{
private const int MAXCONTENTLENGHT = 250 * 1024 * 1024;
private const int MAXCONTENTLENGTH = 250 * 1024 * 1024;
/// <summary>
/// Chars used to split an URL path into multiple parts.
/// </summary>
@@ -341,7 +341,7 @@ namespace OSHttpServer
case "content-length":
if (!int.TryParse(value, out int t))
throw new BadRequestException("Invalid content length.");
if (t > MAXCONTENTLENGHT)
if (t > MAXCONTENTLENGTH)
throw new OSHttpServer.Exceptions.HttpException(HttpStatusCode.RequestEntityTooLarge,"Request Entity Too Large");
ContentLength = t;
break;