forked fromglynos/cpp-netlib
- Notifications
You must be signed in to change notification settings - Fork425
Commitb930b8e
Fix chunk and content-length encoding (#759)
* The entire body has already been placed in partial_parsed, so don't direct the callback to append any more data* Cleaned up indentation.Don't potentially access memory beyond the end of the string buffer.In the case of a partial chunk, exit the loop. Continuing to search for crlf in the middle of a binary data chunk can result in an infinite loop, and wasn't the right logic.1 parentcef6472 commitb930b8e
File tree
1 file changed
+9
-8
lines changed- boost/network/protocol/http/client/connection
1 file changed
+9
-8
lines changedLines changed: 9 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
364 |
| - | |
365 |
| - | |
| 364 | + | |
366 | 365 |
| |
367 | 366 |
| |
368 |
| - | |
369 |
| - | |
370 |
| - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
371 | 370 |
| |
372 | 371 |
| |
373 | 372 |
| |
374 | 373 |
| |
375 | 374 |
| |
376 | 375 |
| |
377 | 376 |
| |
378 |
| - | |
379 |
| - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
380 | 381 |
| |
381 | 382 |
| |
382 | 383 |
| |
| |||
391 | 392 |
| |
392 | 393 |
| |
393 | 394 |
| |
394 |
| - | |
| 395 | + | |
395 | 396 |
| |
396 | 397 |
| |
397 | 398 |
| |
|
0 commit comments
Comments
(0)