Changeset 02437699917085eff2bf16b44ba0b6751ca7e36d

Show
Ignore:
Timestamp:
02/24/11 15:05:03 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1298559903 +0000
git-parent:

[f64ae82bd480bcd2c18ef07b13d7ed71cf55bcbb]

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

don't snprintf the status reason if we haven't one

Files:

Legend:

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

    rec0f79b r0243769  
    10731073                     "HTTP/0.9"); 
    10741074  tlen = snprintf(b->buff, b->allocd, "%s %03d %s\r\n", 
    1075                   protocol_str, ctx->res.status_code, ctx->res.status_reason); 
     1075                  protocol_str, ctx->res.status_code, 
     1076                  ctx->res.status_reason ? ctx->res.status_reason : "unknown"); 
    10761077  if(tlen < 0) return -1; 
    10771078  len = b->size = tlen;