Skip to content

Commit c55ad78

Browse files
committed
Fix GH-11433: Unable to set CURLOPT_ACCEPT_ENCODING to NULL
1 parent f2d673f commit c55ad78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,6 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
24932493
case CURLOPT_TLSAUTH_TYPE:
24942494
case CURLOPT_TLSAUTH_PASSWORD:
24952495
case CURLOPT_TLSAUTH_USERNAME:
2496-
case CURLOPT_ACCEPT_ENCODING:
24972496
case CURLOPT_TRANSFER_ENCODING:
24982497
case CURLOPT_DNS_SERVERS:
24992498
case CURLOPT_MAIL_AUTH:
@@ -2553,6 +2552,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
25532552
case CURLOPT_RANGE:
25542553
case CURLOPT_FTP_ACCOUNT:
25552554
case CURLOPT_RTSP_SESSION_ID:
2555+
case CURLOPT_ACCEPT_ENCODING:
25562556
#if LIBCURL_VERSION_NUM >= 0x072100 /* Available since 7.33.0 */
25572557
case CURLOPT_DNS_INTERFACE:
25582558
case CURLOPT_DNS_LOCAL_IP4:

0 commit comments

Comments
 (0)