summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.c6
-rw-r--r--http.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/http.c b/http.c
index 2d086aedfa..1ea62fad4f 100644
--- a/http.c
+++ b/http.c
@@ -706,6 +706,12 @@ void finish_active_slot(struct active_request_slot *slot)
if (slot->results != NULL) {
slot->results->curl_result = slot->curl_result;
slot->results->http_code = slot->http_code;
+#if LIBCURL_VERSION_NUM >= 0x070a08
+ curl_easy_getinfo(slot->curl, CURLINFO_HTTPAUTH_AVAIL,
+ &slot->results->auth_avail);
+#else
+ slot->results->auth_avail = 0;
+#endif
}
/* Run callback if appropriate */
diff --git a/http.h b/http.h
index d77c1b54f2..81d4843293 100644
--- a/http.h
+++ b/http.h
@@ -54,6 +54,7 @@
struct slot_results {
CURLcode curl_result;
long http_code;
+ long auth_avail;
};
struct active_request_slot {