Changes in / [dd7b931:ab19567]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/http_client.c

    rdd7b931 rab19567  
    329329       
    330330        /* 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. */
    332333        chunk = req->cbuf;
    333334        eos = req->cbuf + req->cblen;
     
    358359                        return CR_EOF;
    359360               
     361                /* Wait for the whole chunk to arrive. */
    360362                if( s + clen > eos )
    361363                        break;
     
    645647                g_free( req->request );
    646648                g_free( req->reply_headers );
     649                g_free( req->sbuf );
    647650                req->request = new_request;
    648651                req->request_length = strlen( new_request );
    649652                req->bytes_read = req->bytes_written = req->inpa = 0;
    650653                req->reply_headers = req->reply_body = NULL;
     654                req->sbuf = req->cbuf = NULL;
     655                req->sblen = req->cblen = 0;
    651656               
    652657                return FALSE;
Note: See TracChangeset for help on using the changeset viewer.