diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-05-19 15:49:32 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-05-19 15:49:32 +0000 |
| commit | 6497ed63d42042a249ea0233a3ef3b97b75f3db3 (patch) | |
| tree | aaeca6b88dbfb9327f7e817e7cba8fbdeb206efb /src/HttpConnection.cc | |
| parent | d018b3a609a9e6eb5f2adb550b39452254daa8c6 (diff) | |
2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/SocketCore.cc
(isReadable): Added secure to the condition.
* src/HttpConnection.cc
(receiveResponse): Fixed a bug that causes no response header
exception.
* src/Peer.h
(getFastSet): Fixed the return value type.
Diffstat (limited to 'src/HttpConnection.cc')
| -rw-r--r-- | src/HttpConnection.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/HttpConnection.cc b/src/HttpConnection.cc index 8542efde..d48b53f5 100644 --- a/src/HttpConnection.cc +++ b/src/HttpConnection.cc @@ -141,6 +141,7 @@ int HttpConnection::receiveResponse(HttpHeader& headers) { if((eohIndex = findEndOfHeader(headerBuf, "\r\n\r\n", hlenTemp)) == -1 && (eohIndex = findEndOfHeader(headerBuf, "\n\n", hlenTemp)) == -1) { socket->readData(headerBuf+headerBufLength, size); + headerBufLength += size; } else { if(eohIndex[headerBuf] == '\n') { // for crapping non-standard HTTP server |
