#31 HTTP Host: header never includes port

open
nobody
None
5
2010-04-22
2010-04-22
No

When sending a POST request, the HTTPRequest object never includes the port number on the Host: header as required by the HTTP spec. This can break self-referencing URLs being sent back by the server in response to the action.

Quick patch (attached) fixes the problem, tested with the latest svn HEAD.

Discussion

  • Add port to Host: header on POST

     
    Attachments