[PATCH] wininet: remove custom port handling in HTTP_HandleRedirect

Daniel Lehman dlehman at esri.com
Wed Oct 22 13:45:16 CDT 2014


HTTP_HandleRedirect updates both:
- the Host: field
- and session->hostname

If there is a custom port, it is appended to session->hostName.  This causes problems for later HttpOpenRequest/process_host_port calls that append the port to the host name (resulting in "foobar:1234:1234")

There is already logic in HTTP_HandleRequest that will update the request->server if the new host or port don't match.  in that case, get_server/process_host_port use the updated host and port and store them appended in server->host_port.  If they already match, server->host_port is left untouched

The attached change removes the current custom port logic to instead use server->host_port to update the Host: field
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wininet-remove-custom-port-handling-in-HTTP_HandleR.patch
Type: application/octet-stream
Size: 3037 bytes
Desc: 0001-wininet-remove-custom-port-handling-in-HTTP_HandleR.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141022/7f1086bb/attachment.obj>


More information about the wine-patches mailing list