Do not keep pending data across HTTP connections.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 11 Apr 2013 19:36:55 +0000 (21:36 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 11 Apr 2013 19:36:55 +0000 (21:36 +0200)
httpinput.cpp

index 012f5bc..46f1358 100644 (file)
@@ -215,6 +215,7 @@ void HTTPInput::do_work()
                        request.clear();
                        request_bytes_sent = 0;
                        response.clear();
+                       pending_data.clear();
 
                        {
                                string protocol;  // Thrown away.