Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 89:29bf798b583f
nginx-0.0.1-2003-05-15-19:42:53 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 May 2003 15:42:53 +0000 |
parents | 3973260705cc |
children | 637625a2acdb |
comparison
equal
deleted
inserted
replaced
88:674d333f4296 | 89:29bf798b583f |
---|---|
312 } | 312 } |
313 | 313 |
314 r->http_version = r->http_major * 1000 + r->http_minor; | 314 r->http_version = r->http_major * 1000 + r->http_minor; |
315 r->state = sw_start; | 315 r->state = sw_start; |
316 | 316 |
317 if (r->http_version == 9 && r->method == NGX_HTTP_HEAD) { | 317 if (r->http_version == 9 && r->method != NGX_HTTP_GET) { |
318 return NGX_HTTP_PARSE_INVALID_HEAD; | 318 return NGX_HTTP_PARSE_INVALID_09_METHOD; |
319 } else { | |
320 return NGX_OK; | |
321 } | 319 } |
320 | |
321 return NGX_OK; | |
322 | 322 |
323 } else { | 323 } else { |
324 r->state = state; | 324 r->state = state; |
325 return NGX_AGAIN; | 325 return NGX_AGAIN; |
326 } | 326 } |