Mercurial > hg > nginx
comparison src/http/modules/ngx_http_header_filter.c @ 8:708f8bb772ec
nginx-0.0.1-2002-09-02-18:48:24 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Sep 2002 14:48:24 +0000 |
parents | 34a521b1a148 |
children |
comparison
equal
deleted
inserted
replaced
7:b5481d6fbbd4 | 8:708f8bb772ec |
---|---|
1 | 1 |
2 #include <nginx.h> | 2 #include <nginx.h> |
3 | 3 |
4 #include <ngx_config.h> | 4 #include <ngx_config.h> |
5 #include <ngx_core.h> | |
5 #include <ngx_string.h> | 6 #include <ngx_string.h> |
6 #include <ngx_hunk.h> | 7 #include <ngx_hunk.h> |
7 #include <ngx_http.h> | 8 #include <ngx_http.h> |
8 | 9 |
9 | 10 |
23 { | 24 { |
24 int status; | 25 int status; |
25 ngx_hunk_t *h; | 26 ngx_hunk_t *h; |
26 ngx_chain_t *ch; | 27 ngx_chain_t *ch; |
27 | 28 |
28 ngx_test_null(h, ngx_get_hunk(r->pool, 1024, 0, 64), | 29 ngx_test_null(h, ngx_create_temp_hunk(r->pool, 1024, 0, 64), |
29 /* STUB */ | 30 NGX_ERROR); |
30 -1); | |
31 /* | |
32 NGX_HTTP_FILTER_ERROR); | |
33 */ | |
34 | 31 |
35 status = r->headers_out->status - NGX_HTTP_OK; | 32 status = r->headers_out->status - NGX_HTTP_OK; |
36 | 33 |
37 ngx_memcpy(h->last.mem, "HTTP/1.0 ", 9); | 34 ngx_memcpy(h->last.mem, "HTTP/1.0 ", 9); |
38 h->last.mem += 9; | 35 h->last.mem += 9; |