awips2/nativeLib/org.apache.thrift/thrift-0.9.0-chunked-encoding.patch
Shawn.Hooper 25f8ca9be0 ASM #17630 - Update with patched thrift libraries
Change-Id: Ibde2e2fb283f9b21360de4a013706409a7f941f1

Former-commit-id: ce6c9e536cd45d030b74d9cedf66b4a8cdb18bb3
2015-06-19 11:24:23 -04:00

21 lines
770 B
Diff
Executable file

diff -ur thrift-0.9.0/lib/cpp/src/thrift/transport/THttpTransport.cpp thrift-0.9.0-chunked-encoding-fix/lib/cpp/src/thrift/transport/THttpTransport.cpp
--- thrift-0.9.0/lib/cpp/src/thrift/transport/THttpTransport.cpp 2012-10-12 00:58:06.000000000 +0000
+++ thrift-0.9.0-chunked-encoding-fix/lib/cpp/src/thrift/transport/THttpTransport.cpp 2015-05-08 21:14:29.532529766 +0000
@@ -90,8 +90,8 @@
size = readChunked();
} else {
size = readContent(contentLength_);
+ readHeaders_ = true;
}
- readHeaders_ = true;
return size;
}
@@ -102,6 +102,7 @@
uint32_t chunkSize = parseChunkSize(line);
if (chunkSize == 0) {
readChunkedFooters();
+ readHeaders_ = true;
} else {
// Read data content
length += readContent(chunkSize);