summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2018-12-31 22:33:20 -0500
committerJason Woodward2018-12-31 22:33:20 -0500
commitc31597d58d4f038e938c47bbe88330939657b6cf (patch)
treecc654af1b884ddb446238b703d0cdaf095793869
parentd10c2a19de26f7a4d8fdc01fc5d3c7fe6794b2c2 (diff)
downloadslapt-get-c31597d58d4f038e938c47bbe88330939657b6cf.tar.gz
some webservers return lowercase headers, update slapt_head_mirror_data accordingly
-rw-r--r--src/curl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/curl.c b/src/curl.c
index 5cad37d..07573d2 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -449,10 +449,10 @@ char *slapt_head_mirror_data(const char *wurl, const char *file)
}
/* extract the last modified date for storage and later comparison */
- request_header_ptr = strstr(head_data, "Last-Modified");
+ request_header_ptr = strcasestr(head_data, "Last-Modified");
if (request_header_ptr == NULL) {
/* this is ftp, in which case the Content-Length will have to do */
- request_header_ptr = strstr(head_data, "Content-Length");
+ request_header_ptr = strcasestr(head_data, "Content-Length");
if (request_header_ptr == NULL || strstr(wurl, "ftp") == NULL) {
free(head_data);
return NULL;