methods/http.cc: use Req.str() in debug output
authorMichael Vogt <mvo@debian.org>
Tue, 24 Jun 2014 13:45:09 +0000 (15:45 +0200)
committerMichael Vogt <mvo@debian.org>
Tue, 24 Jun 2014 13:45:09 +0000 (15:45 +0200)
methods/http.cc

index c734d37..7c7949e 100644 (file)
@@ -744,7 +744,7 @@ void HttpMethod::SendReq(FetchItem *Itm)
    Req << "\r\n";
 
    if (Debug == true)
-      cerr << Req << endl;
+      cerr << Req.str() << endl;
 
    Server->WriteResponse(Req.str());
 }