Ticket #1098: diff

File diff, 0.6 kB (added by gcleary@…, 19 months ago)

diff with fix for request.c

  • src/request.c

    $ diff -uN ~ctaylor/Stuff/lighttpd-svn/src src/request.c
    old new  
    371371 
    372372                       r = strtoll(ds->value->ptr, &err, 10); 
    373373 
    374                        if (*err != '\0') { 
     374            /* accept any valid content-length inspite of trailing characters */ 
     375                       if (err == ds->value->ptr) { 
    375376                               TRACE("content-length is not a number: %s (Status: 400)", err); 
    376377 
    377378                               con->http_status = 400;