Changes in lib/http_client.c [286cd48:dd7b931]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/http_client.c
r286cd48 rdd7b931 292 292 293 293 cleanup: 294 /* Avoid g_source_remove warnings */295 req->inpa = 0;296 297 294 if( req->ssl ) 298 295 ssl_disconnect( req->ssl ); … … 332 329 333 330 /* Turns out writing a proper chunked-encoding state machine is not 334 that simple. :-( I've tested this one feeding it byte by byte so 335 I hope it's solid now. */ 331 that simple. :-( */ 336 332 chunk = req->cbuf; 337 333 eos = req->cbuf + req->cblen; … … 362 358 return CR_EOF; 363 359 364 /* Wait for the whole chunk to arrive. */365 360 if( s + clen > eos ) 366 361 break; … … 650 645 g_free( req->request ); 651 646 g_free( req->reply_headers ); 652 g_free( req->sbuf );653 647 req->request = new_request; 654 648 req->request_length = strlen( new_request ); 655 649 req->bytes_read = req->bytes_written = req->inpa = 0; 656 650 req->reply_headers = req->reply_body = NULL; 657 req->sbuf = req->cbuf = NULL;658 req->sblen = req->cblen = 0;659 651 660 652 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.