time_t-fixes: remove typecasts to 'long' for info.filetime

They're now wrong.

Reported-by: Michael Kaufmann

Closes #2277
This commit is contained in:
Daniel Stenberg 2018-02-01 00:24:19 +01:00
parent 9409d0c26c
commit ddd31dc5dd
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 11 additions and 11 deletions

View file

@ -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)) ||