http: provide effective url to callers
[gitweb.git] / http.h
diff --git a/http.h b/http.h
index 17116abc570bf3d5577051420d88d839a9603e80..974ede7736ec746c9ef067dd747c407db8df8c98 100644 (file)
--- a/http.h
+++ b/http.h
@@ -133,6 +133,12 @@ struct http_get_options {
 
        /* If non-NULL, returns the content-type of the response. */
        struct strbuf *content_type;
+
+       /*
+        * If non-NULL, returns the URL we ended up at, including any
+        * redirects we followed.
+        */
+       struct strbuf *effective_url;
 };
 
 /* Return values for http_get_*() */