Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 216:f1d0e5f09c1e
nginx-0.0.1-2003-12-25-23:26:58 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Dec 2003 20:26:58 +0000 |
parents | 00cafae0bdf1 |
children | 574bea0142be |
comparison
equal
deleted
inserted
replaced
215:5adc2b75f8a5 | 216:f1d0e5f09c1e |
---|---|
461 c = ch | 0x20; | 461 c = ch | 0x20; |
462 if (c >= 'a' && c <= 'z') { | 462 if (c >= 'a' && c <= 'z') { |
463 break; | 463 break; |
464 } | 464 } |
465 | 465 |
466 if (ch == '-') { | 466 if (ch == '-' || ch == '_' || ch == '~') { |
467 break; | 467 break; |
468 } | 468 } |
469 | 469 |
470 if (ch >= '0' && ch <= '9') { | 470 if (ch >= '0' && ch <= '9') { |
471 break; | 471 break; |
487 r->header_name_end = p - 1; | 487 r->header_name_end = p - 1; |
488 state = sw_space_before_value; | 488 state = sw_space_before_value; |
489 break; | 489 break; |
490 } | 490 } |
491 | 491 |
492 if (ch == '-') { | 492 if (ch == '-' || ch == '_' || ch == '~') { |
493 break; | 493 break; |
494 } | 494 } |
495 | 495 |
496 if (ch >= '0' && ch <= '9') { | 496 if (ch >= '0' && ch <= '9') { |
497 break; | 497 break; |