Show
Ignore:
Timestamp:
04/02/10 22:02:56 (9 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1270245776 +0000
git-parent:

[f51de7f7283049c79b77005a952660d566edf93c]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1270245776 +0000
Message:

various http bugs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_http.c

    rce0c8f2 rfddf717  
    142142      start_in_b = b->start + b->size - 3; /* we already checked -2 */ 
    143143      while(start_in_b >= b->start) { 
    144         if(memcmp(b->buff + start_in_b, "\r\n", 2) == 0) { 
     144        if(b->buff[start_in_b] == '\r' && b->buff[start_in_b+1] == '\n') { 
    145145          start_in_b += 2; 
    146146          break; 
    147147        } 
     148        start_in_b--; 
    148149      } 
    149150    } 
     
    344345        req->method = _method_enum(req->method_str); 
    345346        req->protocol = _protocol_enum(req->protocol_str); 
     347        req->opts |= NOIT_HTTP_CLOSE; 
    346348        if(req->protocol == NOIT_HTTP11) req->opts |= NOIT_HTTP_CHUNKED; 
    347349      } 
     
    413415void 
    414416noit_http_process_querystring(noit_http_request *req) { 
    415   char *cp, *copy, *interest, *brk; 
     417  char *cp, *interest, *brk; 
    416418  cp = strchr(req->uri_str, '?'); 
    417419  if(!cp) return;