vibe.d maxRequestSize

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 15 07:58: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

Hm, maybe the browsers are limiting the the length of the query 
string themselves, although that shouldn't be an issue with POST.

I can send very long strings, if I enable 
HTTPServerOption.parseFormBody, but then I can no longer parse 
the URI at the same time  (as far as I know).

The browser always sends `Content-Length: 0` in the request 
header, which doesn't affect vibe.d (short strings work).




More information about the Digitalmars-d-learn mailing list