Skip to content

Commit

Permalink
http_client Restrict protocols for redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
oej committed Mar 28, 2016
1 parent 126c9c3 commit f19d258
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/http_client/functions.c
Expand Up @@ -132,6 +132,7 @@ static int curL_query_url(struct sip_msg* _m, const char* _url, str* _dst, const

/* Limit to HTTP and HTTPS protocols */
res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);

if (params->post) {
char ctype[256];
Expand Down

0 comments on commit f19d258

Please sign in to comment.