#158 HTTPHeader value length

open
nobody
Net (11)
5
2012-09-14
2012-07-03
Anonymous
No

At the moment the maximum length of a value in the MessageHeader class is limited at 4096 bytes by the enum value Limits.MAX_VALUE_LENGTH defined in MessageHeader.h. As far as I know the maximum length for a HTTP header value is not defined in the HTTP RFC and for a project I'm currently working on the current limit of 4096 is to small. Is it possible to extends this value or to make is configurable? (define or something)

And what would be a reasonable work-a-round besided changed the header file?

Discussion

  • What maximum header length would you need? The maximum header length limit is just to guard against possible DoS attacks involving super-long header lines. You can simply change it to a higher value.

     
  • Alex Fabijanic
    Alex Fabijanic
    2012-08-18

    Moving to feature requests.