X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=7bb54a86c7cc4555186c0f666fcddcbe6db0a52f;hp=b59d943e736853f43eb23df6db80c8fcc0dd784e;hb=98d8a1dced6ae8bde1953f439de7fd9c453e5971;hpb=dbc4ec02cd319000b5c8589910047cfe6d5738be diff --git a/http_request_api.c b/http_request_api.c index b59d943..7bb54a8 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -745,7 +745,7 @@ PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti if (Z_LVAL_P(zoption) > 0) { HTTP_CURL_OPT(CURLOPT_TIMEVALUE, Z_LVAL_P(zoption)); } else { - HTTP_CURL_OPT(CURLOPT_TIMEVALUE, (long) HTTP_GET_REQUEST_TIME() + Z_LVAL_P(zoption)); + HTTP_CURL_OPT(CURLOPT_TIMEVALUE, (long) HTTP_G->request.time + Z_LVAL_P(zoption)); } HTTP_CURL_OPT(CURLOPT_TIMECONDITION, (long) (range_req ? CURL_TIMECOND_IFUNMODSINCE : CURL_TIMECOND_IFMODSINCE)); } else {