version 1.215, 2023/06/28 11:07:28 |
version 1.216, 2023/06/28 17:35:06 |
|
|
if (strncasecmp(cp, CONTENTLEN, sizeof(CONTENTLEN) - 1) == 0) { |
if (strncasecmp(cp, CONTENTLEN, sizeof(CONTENTLEN) - 1) == 0) { |
cp += sizeof(CONTENTLEN) - 1; |
cp += sizeof(CONTENTLEN) - 1; |
cp += strspn(cp, " \t"); |
cp += strspn(cp, " \t"); |
cp[strcspn(cp, " \t")] = '\0'; |
|
filesize = strtonum(cp, 0, LLONG_MAX, &errstr); |
filesize = strtonum(cp, 0, LLONG_MAX, &errstr); |
if (errstr != NULL) |
if (errstr != NULL) |
goto improper; |
goto improper; |
|
|
#define RETRYAFTER "Retry-After:" |
#define RETRYAFTER "Retry-After:" |
} else if (isunavail && |
} else if (isunavail && |
strncasecmp(cp, RETRYAFTER, sizeof(RETRYAFTER) - 1) == 0) { |
strncasecmp(cp, RETRYAFTER, sizeof(RETRYAFTER) - 1) == 0) { |
size_t s; |
|
cp += sizeof(RETRYAFTER) - 1; |
cp += sizeof(RETRYAFTER) - 1; |
cp += strspn(cp, " \t"); |
cp += strspn(cp, " \t"); |
cp[strcspn(cp, " \t")] = '\0'; |
|
retryafter = strtonum(cp, 0, 0, &errstr); |
retryafter = strtonum(cp, 0, 0, &errstr); |
if (errstr != NULL) |
if (errstr != NULL) |
retryafter = -1; |
retryafter = -1; |
|
|
sizeof(TRANSFER_ENCODING) - 1) == 0) { |
sizeof(TRANSFER_ENCODING) - 1) == 0) { |
cp += sizeof(TRANSFER_ENCODING) - 1; |
cp += sizeof(TRANSFER_ENCODING) - 1; |
cp += strspn(cp, " \t"); |
cp += strspn(cp, " \t"); |
cp[strcspn(cp, " \t")] = '\0'; |
|
if (strcasecmp(cp, "chunked") == 0) |
if (strcasecmp(cp, "chunked") == 0) |
chunked = 1; |
chunked = 1; |
#ifndef SMALL |
#ifndef SMALL |
|
|
sizeof(LAST_MODIFIED) - 1) == 0) { |
sizeof(LAST_MODIFIED) - 1) == 0) { |
cp += sizeof(LAST_MODIFIED) - 1; |
cp += sizeof(LAST_MODIFIED) - 1; |
cp += strspn(cp, " \t"); |
cp += strspn(cp, " \t"); |
cp[strcspn(cp, "\t")] = '\0'; |
|
if (strptime(cp, "%a, %d %h %Y %T %Z", &lmt) == NULL) |
if (strptime(cp, "%a, %d %h %Y %T %Z", &lmt) == NULL) |
server_timestamps = 0; |
server_timestamps = 0; |
#endif /* !SMALL */ |
#endif /* !SMALL */ |