849 |
while ((c = *value) && (c == ' ' || c == '\t')) |
while ((c = *value) && (c == ' ' || c == '\t')) |
850 |
value++; |
value++; |
851 |
|
|
|
if (!memcmp(line, "IF_MODIFIED_SINCE", 18) && !req->if_modified_since) |
|
|
req->if_modified_since = value; |
|
852 |
|
|
853 |
else if (!memcmp(line, "CONTENT_TYPE", 13) && !req->content_type) |
if (!memcmp(line, "CONTENT_TYPE", 13) && !req->content_type) |
854 |
req->content_type = value; |
req->content_type = value; |
855 |
|
|
856 |
else if (!memcmp(line, "CONTENT_LENGTH", 15) && !req->content_length) |
else if (!memcmp(line, "CONTENT_LENGTH", 15) && !req->content_length) |
881 |
init_vhost_stuff( req, value); |
init_vhost_stuff( req, value); |
882 |
if (!add_cgi_env(req, "HOST", value, 1)) |
if (!add_cgi_env(req, "HOST", value, 1)) |
883 |
return 0; |
return 0; |
884 |
} else if (!memcmp(line, "IF_", 3)) { |
} else if (!memcmp(line, "IF_", 3) && !req->if_type) { |
885 |
char *p = line+3; |
char *p = line+3; |
|
req->etag = value; |
|
886 |
|
|
887 |
if (!memcmp( p, "MATCH", 5)) |
if (!memcmp( p, "MODIFIED_SINCE", 15)) { |
888 |
req->if_type = IF_MATCH; |
req->if_type |= IF_MODIFIED_SINCE; |
889 |
else if (!memcmp( p, "NONE_MATCH", 10)) |
req->if_modified_since = value; |
890 |
req->if_type = IF_NONE_MATCH; |
|
891 |
else if (!memcmp( p, "RANGE", 5)) |
} else if (!memcmp( p, "MATCH", 5)) { |
892 |
req->if_type = IF_RANGE; |
req->if_type |= IF_MATCH; |
893 |
|
req->etag = value; |
894 |
|
|
895 |
|
} else if (!memcmp( p, "NONE_MATCH", 10)) { |
896 |
|
req->if_type |= IF_NONE_MATCH; |
897 |
|
req->etag = value; |
898 |
|
|
899 |
|
} else if (!memcmp( p, "RANGE", 5)) { |
900 |
|
req->if_type |= IF_RANGE; |
901 |
|
req->etag = value; |
902 |
|
} |
903 |
|
|
904 |
if (!add_cgi_env(req, line, value, 1)) |
if (!add_cgi_env(req, line, value, 1)) |
905 |
return 0; |
return 0; |