vibe.d maxRequestSize

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 19 08:59:21 PDT 2016


On Thursday, 15 September 2016 at 13:26:48 UTC, Steven 
Schveighoffer wrote:
> On 9/15/16 9:11 AM, Chris wrote:
>> On Wednesday, 14 September 2016 at 20:23:09 UTC, Steven 
>> Schveighoffer
>> wrote:
>>
>>>
>>> Hm.. I have adjusted this in my project, and it works (set to 
>>> 50M).
>>> Needed it for uploading large images.
>>>
>>> Using version 0.7.29
>>>
>>> -Steve
>>
>> It doesn't seem to make any difference in my case. I wonder 
>> what could
>> be wrong
>
> Seems to be in use:
>
> https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/http/server.d#L1832
>
> -Steve

Finally, I could find where it happens. If I use "get" in a HTML 
form (instead of "post"), vibe.d complains. I set the max request 
and request header size to 25MB.

`
400 - Bad Request

Bad Request

Internal error information:
object.Exception at ../../.dub/packages/vibe-d-0.7.29/vibe-d/source/vibe/stream/operations.d(349): Reached maximum number of bytes while searching for end marker.
----------------
`

https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/stream/operations.d#L349


More information about the Digitalmars-d-learn mailing list