Skip to content

Commit

Permalink
allow to use local file through file:// protocol for metadata or jwks
Browse files Browse the repository at this point in the history
  • Loading branch information
pladen committed Jun 24, 2024
1 parent c94b26f commit 3bfbc5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,12 +1014,12 @@ bool oauth2_http_call(oauth2_log_t *log, const char *url, const char *data,
#ifndef LIBCURL_NO_CURLPROTO
#if LIBCURL_VERSION_NUM >= 0x075500
curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS_STR, "http,https");
curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, "http,https");
curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, "http,https,file");
#else
curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS,
CURLPROTO_HTTP | CURLPROTO_HTTPS);
curl_easy_setopt(curl, CURLOPT_PROTOCOLS,
CURLPROTO_HTTP | CURLPROTO_HTTPS);
CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FILE);
#endif
#endif

Expand Down

0 comments on commit 3bfbc5c

Please sign in to comment.