The
HttpMessage setRequestBody / setResponseBody methods dont currently update the content length.
This has resulted in a few bugs, including
http://code.google.com/p/zaproxy/issues/detail?id=1156This catches me out all the time, and I dont think its just me ;)
I'd like to update these methods to update the relevant content lengths by default, with an option to update the body and not set the content length.
Any objections?
Anyone know of any code that relies on the content length being wrong?
I've been meaning to do this for a while but didnt want to do it just before the 2.3.0 release ;)
Cheers,
Simon