comparison src/http/ngx_http_special_response.c @ 633:f971949ffb58 release-0.3.38

nginx-0.3.38-RELEASE import *) Feature: the ngx_http_dav_module. *) Change: the ngx_http_perl_module optimizations. Thanks to Sergey Skvortsov. *) Feature: the ngx_http_perl_module supports the $r->request_body_file method. *) Feature: the "client_body_in_file_only" directive. *) Workaround: now on disk overflow nginx tries to write access logs once a second only. Thanks to Anton Yuzhaninov and Maxim Dounin. *) Bugfix: now the "limit_rate" directive more precisely limits rate if rate is more than 100 Kbyte/s. Thanks to ForJest. *) Bugfix: now the IMAP/POP3 proxy escapes the "\r" and "\n" symbols in login and password to pass authorization server. Thanks to Maxim Dounin.
author Igor Sysoev <igor@sysoev.ru>
date Fri, 14 Apr 2006 09:53:38 +0000
parents c73c5c58c619
children e60fe4cf1d4e
comparison
equal deleted inserted replaced
632:5c60f5f0887d 633:f971949ffb58
197 ; 197 ;
198 198
199 199
200 static ngx_str_t error_pages[] = { 200 static ngx_str_t error_pages[] = {
201 201
202 ngx_null_string, /* 204 */ 202 ngx_null_string, /* 201, 204 */
203 203
204 #define NGX_HTTP_LEVEL_200 1 204 #define NGX_HTTP_LEVEL_200 1
205 205
206 /* ngx_null_string, */ /* 300 */ 206 /* ngx_null_string, */ /* 300 */
207 ngx_string(error_301_page), 207 ngx_string(error_301_page),
318 } 318 }
319 } 319 }
320 } 320 }
321 } 321 }
322 322
323 if (error == NGX_HTTP_NO_CONTENT) { 323 if (error == NGX_HTTP_CREATED) {
324 /* 201 */
325 err = 0;
326
327 } else if (error == NGX_HTTP_NO_CONTENT) {
324 /* 204 */ 328 /* 204 */
325 err = 0; 329 err = 0;
326 330
327 } else if (error < NGX_HTTP_BAD_REQUEST) { 331 } else if (error < NGX_HTTP_BAD_REQUEST) {
328 /* 3XX */ 332 /* 3XX */