Skip to content

Commit

Permalink
add curlopt_accept_encoding (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrophysik authored Dec 6, 2023
1 parent 0a1b9f0 commit f035b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions builtin-functions/_functions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,7 @@ define('CURLOPT_TCP_KEEPALIVE', 200123);
define('CURLOPT_TCP_KEEPIDLE', 200124);
define('CURLOPT_TCP_KEEPINTVL', 200125);
define('CURLOPT_PRIVATE', 200126);
define('CURLOPT_ACCEPT_ENCODING', 200127);

define('CURLPROXY_HTTP', 400000);
define('CURLPROXY_HTTP_1_0', 400001);
Expand Down
1 change: 1 addition & 0 deletions runtime/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ bool curl_setopt(EasyContext *easy_context, int64_t option, const mixed &value)
{CURLOPT_TCP_KEEPIDLE, long_option_setter},
{CURLOPT_TCP_KEEPINTVL, long_option_setter},
{CURLOPT_PRIVATE, private_option_setter},
{CURLOPT_ACCEPT_ENCODING, string_option_setter},
});

constexpr size_t CURLOPT_OPTION_OFFSET = 200000;
Expand Down

0 comments on commit f035b13

Please sign in to comment.