summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_special_response.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-12-10 18:05:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-12-10 18:05:12 +0000
commitb0869056bb4385a6b30fc58c653716c45ed33916 (patch)
tree8522c66320ee59e4671f23058a971d9556d1a6a0 /src/http/ngx_http_special_response.c
parentef259d140f378be8d7936d04038354a93cccb461 (diff)
downloadnginx-b0869056bb4385a6b30fc58c653716c45ed33916.tar.gz
nginx-b0869056bb4385a6b30fc58c653716c45ed33916.tar.bz2
nginx-0.0.1-2002-12-10-21:05:12 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r--src/http/ngx_http_special_response.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
new file mode 100644
index 000000000..8ca49eb30
--- /dev/null
+++ b/src/http/ngx_http_special_response.c
@@ -0,0 +1,21 @@
+
+
+#include <ngx_config.h>
+#if 0
+#include <ngx_core.h>
+#endif
+#include <ngx_http.h>
+
+
+int ngx_http_special_response(ngx_http_request_t *r, int error)
+{
+ switch (error) {
+
+ default:
+ r->headers_out.status = error;
+ return ngx_http_header_filter(r);
+
+ }
+
+ return ngx_http_error(r, error);
+}