aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-02-01 00:24:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-02-01 07:50:59 +0100
commitddd31dc5dd960c4bd4dc995aec5178fddb24bfef (patch)
tree34f9466202037ebe09108216ce6488cd3ba2d0fb /lib/http.c
parent9409d0c26c7d46cde20beaec09ef0babb10f3794 (diff)
time_t-fixes: remove typecasts to 'long' for info.filetime
They're now wrong. Reported-by: Michael Kaufmann Closes #2277
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index a5007670d..ac8f8ea92 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -3692,7 +3692,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data,
k->timeofdoc = curl_getdate(k->p + strlen("Last-Modified:"),
&secs);
if(data->set.get_filetime)
- data->info.filetime = (long)k->timeofdoc;
+ data->info.filetime = k->timeofdoc;
}
else if((checkprefix("WWW-Authenticate:", k->p) &&
(401 == k->httpcode)) ||