Why must a HTTP handler not modify the request?

125 views
Skip to first unread message

Matthew Byrne

unread,
Oct 30, 2020, 3:13:40 PM10/30/20
to golang-nuts
The net/http documentation says "Except for reading the body, handlers should not modify the provided Request".  I am writing a proxy and I would like to know more about why this is forbidden.  Is it just a matter of good hygiene or is there a risk of something more serious like a race condition?

Thanks,

Matt
Reply all
Reply to author
Forward
0 new messages