SoupRequestHTTP: don't complete send() until after sniffing
authorDan Winship <danw@gnome.org>
Sat, 22 Oct 2011 21:59:07 +0000 (17:59 -0400)
committerDan Winship <danw@gnome.org>
Thu, 1 Dec 2011 10:35:48 +0000 (11:35 +0100)
commit7f938c2334fbc55d7041a86bbf9ee9169d3c4c53
tree31d0634026200739726405d4017ded3816263bcc
parent3b11e881fcf4cb7026604aac9d93b6497e48d0ed
SoupRequestHTTP: don't complete send() until after sniffing

If the session has a SoupContentSniffer (and it's not disabled for
this message), wait until content-sniffed is emitted before completing
send()/send_async(). Remove the faked content-sniffed emissions from
the cache codepaths, since they should no longer be needed.

https://bugzilla.gnome.org/show_bug.cgi?id=663451
libsoup/soup-http-input-stream.c
libsoup/soup-http-input-stream.h
libsoup/soup-request-http.c