summaryrefslogtreecommitdiff
path: root/src/ChunkedDecoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChunkedDecoder.cc')
-rw-r--r--src/ChunkedDecoder.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ChunkedDecoder.cc b/src/ChunkedDecoder.cc
index a18f3fd9..63cf8d09 100644
--- a/src/ChunkedDecoder.cc
+++ b/src/ChunkedDecoder.cc
@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
@@ -90,20 +90,20 @@ std::string ChunkedDecoder::decode(const unsigned char* inbuf, size_t inlen)
while(1) {
if(_state == READ_SIZE) {
if(readChunkSize(_chunkSize, _buf)) {
- if(_chunkSize == 0) {
- _state = STREAM_END;
- break;
- } else {
- _state = READ_DATA;
- }
+ if(_chunkSize == 0) {
+ _state = STREAM_END;
+ break;
+ } else {
+ _state = READ_DATA;
+ }
} else {
- break;
+ break;
}
} else if(_state == READ_DATA) {
if(readData(outbuf, _chunkSize, _buf)) {
- _state = READ_SIZE;
+ _state = READ_SIZE;
} else {
- break;
+ break;
}
}
}