Various bug fixes with the THttpClient
Summary: All kinds of buffer madness, what a pain.
Reviewed By: http
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665024 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/THttpClient.h b/lib/cpp/src/transport/THttpClient.h
index e7f88c9..81fff39 100644
--- a/lib/cpp/src/transport/THttpClient.h
+++ b/lib/cpp/src/transport/THttpClient.h
@@ -67,7 +67,7 @@
uint32_t httpBufSize_;
uint32_t readMoreData();
- char* readLine(char* line);
+ char* readLine(char* line, char** next);
void readHeaders();
void parseHeader(char* header);
@@ -78,7 +78,7 @@
char* readContent(char* pos, uint32_t size);
- void refill();
+ char* refill();
char* shift(char* pos);
};