mirror of
https://github.com/opensim/opensim.git
synced 2026-06-03 17:16:31 +08:00
a few typos
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user