~britco/nginx/master

« back to all changes in this revision

Viewing changes to src/http/modules/ngx_http_empty_gif_module.c

Tags: upstream-0.5.33
ImportĀ upstreamĀ versionĀ 0.5.33

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 
128
128
    if (r->method == NGX_HTTP_HEAD) {
129
129
        r->headers_out.status = NGX_HTTP_OK;
130
 
 
131
 
        rc = ngx_http_send_header(r);
132
 
 
133
 
        if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
134
 
            return rc;
135
 
        }
 
130
        r->headers_out.content_length_n = sizeof(ngx_empty_gif);
 
131
        r->headers_out.last_modified_time = 23349600;
 
132
 
 
133
        return ngx_http_send_header(r);
136
134
    }
137
135
 
138
136
    b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));