Call soup_message_clean_response() when restarting a message
authorDan Winship <danw@gnome.org>
Mon, 8 Aug 2011 21:48:13 +0000 (17:48 -0400)
committerDan Winship <danw@gnome.org>
Mon, 8 Aug 2011 21:48:13 +0000 (17:48 -0400)
commit6b2b958f588526fac12ccf8b73d14afd2195957f
tree8da9e2cb7aab6d6f48d8615e5b1050626ca02c84
parent5ddafe9abc8b594016f401c0b53a481e706e74c6
Call soup_message_clean_response() when restarting a message

When a message got restarted, we were leaving the previous response
state in the message, which is bad for various reasons.

In particular, this caused a problem with non-keepalive redirections
of https URLs through proxies (!), because after the second CONNECT
succeeded, it would see that the message already had a status_code
set, and so it thought the message had been cancelled or something
while it was processing the CONNECT. proxy-test now has a regression
test for this case.

Based on patches and analysis from DongJae Kim and Thierry Reding.

https://bugzilla.gnome.org/show_bug.cgi?id=631368
libsoup/soup-message-queue.c
tests/httpd.conf.in
tests/proxy-test.c