srv := &http.Server{
Addr: "127.0.0.1:8080",
Handler: r,
MaxHeaderBytes: 1,
}
srv.ListenAndServe()
I made several requests by curl with custom headers, and app serving it, without any errors. What I am doing wrong?
Yes, it does, but they add a bit of padding to whatever you specify. In the code they add 4096 bytes to the limit for some reason.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With