This project is read-only.
2

Closed

Posting forms throws exception (v2.0)

description

EDIT: Just realized that this is not a bug but a feature. You should document somewhere, that one has to set the servers MaxContentSize to an appropriate size (or you should initialize it with a value > 0).
 
In the latest version of the 2.0 trunk you seem to have introduced a bug. A simple html form like
 
<html>
<head><title>Test</title></head> <body>
<form method="post" action="test.html"> <input type="text" id="test" name="test" value="Test" /> <input type="submit" value="Test" /> </form> </body>
</html>
 
produces the following exception:
 
500 - Too large body
 
HttpServer.HttpException: Too large body
at HttpServer.Messages.Request.set_ContentLength(NumericHeader value) in D:\Projekte\Visual Studio\OmegaHTTPd\HttpServer\Messages\Request.cs:line 245
at HttpServer.Messages.Request.Add(String name, IHeader value) in D:\Projekte\Visual Studio\OmegaHTTPd\HttpServer\Messages\Request.cs:line 188
[...]
Closed Jan 31, 2012 at 5:57 AM by jgauffin
Initialized it to 1 000 000 bytes in the constructor

comments