soup-cache: update state of SoupMessages when returning data from the cache
authorSergio Villar Senin <svillar@igalia.com>
Wed, 8 Jun 2011 07:18:07 +0000 (09:18 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 8 Jun 2011 07:18:07 +0000 (09:18 +0200)
commit5743afe84ad3bbad4c9e8876ddba8136ea4eb430
treec7e9f033dd96932f1345a35ff163e77362539310
parentc56c66aa2625bc95f54f8a1972e13503f454a51a
soup-cache: update state of SoupMessages when returning data from the cache

SoupCache generates conditional requests to validate some resources. As the
cache is transparent for the client it must update the state of the
SoupMessage used by the SoupHTTPRequest as if the message was really
transmitted over the network. SoupCache was not updating the state
(basically status code and headers) of the SoupMessage that belongs to the
SoupHTTPRequest but the one used for freshness validation.

https://bugzilla.gnome.org/show_bug.cgi?id=649965
libsoup/soup-cache.c
libsoup/soup-request-http.c