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