Max size for http headers

788 views
Skip to first unread message

gg

unread,
Oct 23, 2015, 1:51:18 PM10/23/15
to golang-nuts
Hello all,

I was hoping that someone could tell me what the max length of the request header is, or if there is any limit set at all.


Thanks,

Ilya Sviridov

unread,
Oct 23, 2015, 5:56:52 PM10/23/15
to gg, golang-nuts

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
With best regards
Ilya  Sviridov

Ilya Sviridov

unread,
Oct 23, 2015, 5:58:53 PM10/23/15
to gg, golang-nuts
const DefaultMaxHeaderBytes = 1 << 20 // 1 MB

From here https://golang.org/pkg/net/http/#pkg-constants
Reply all
Reply to author
Forward
0 new messages