X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=http.h;h=173f74c8298c3fa3989f88b06e2085127fe96db8;hb=452c6d506b1a6dcf24d4ceaa592afc39c1c1a60e;hp=b431b8bd5b6d694dd01fc92b2ffcca41655d82bf;hpb=e1c07fa8b169639ee105890082211ba70241b66c;p=git.git diff --git a/http.h b/http.h index b431b8bd5..173f74c82 100644 --- a/http.h +++ b/http.h @@ -23,10 +23,10 @@ #endif #if LIBCURL_VERSION_NUM < 0x070704 -#define curl_global_cleanup() do { /* nothing */ } while(0) +#define curl_global_cleanup() do { /* nothing */ } while (0) #endif #if LIBCURL_VERSION_NUM < 0x070800 -#define curl_global_init(a) do { /* nothing */ } while(0) +#define curl_global_init(a) do { /* nothing */ } while (0) #endif #if (LIBCURL_VERSION_NUM < 0x070c04) || (LIBCURL_VERSION_NUM == 0x071000) @@ -127,6 +127,8 @@ extern void end_url_with_slash(struct strbuf *buf, const char *url); #define HTTP_MISSING_TARGET 1 #define HTTP_ERROR 2 #define HTTP_START_FAILED 3 +#define HTTP_REAUTH 4 +#define HTTP_NOAUTH 5 /* * Requests an url and stores the result in a strbuf.