diff --git a/src/apache.c b/src/apache.c
index eaef61b134e9edde6c34d5d4126e1084b1152e62..29c36cc0f9e1201e5239565d0d2d456a0ce21ffb 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
#endif
}
- curl_easy_setopt(st->curl, CURLOPT_URL, st->url);
curl_easy_setopt(st->curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(st->curl, CURLOPT_MAXREDIRS, 50L);
assert(st->curl != NULL);
st->apache_buffer_fill = 0;
+
+ curl_easy_setopt(st->curl, CURLOPT_URL, st->url);
+
if (curl_easy_perform(st->curl) != CURLE_OK) {
ERROR("apache: curl_easy_perform failed: %s", st->apache_curl_error);
return (-1);