We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bded44 commit 570318bCopy full SHA for 570318b
src/core/Curl/Handler.php
@@ -509,6 +509,12 @@ private function setOption(int $opt, $value): bool
509
case CURLOPT_PROGRESSFUNCTION:
510
$this->progressFunction = $value;
511
break;
512
+ case CURLOPT_HTTPAUTH:
513
+ if (!($value & CURLAUTH_BASIC)) {
514
+ trigger_error("swoole_curl_setopt(): CURLOPT_HTTPAUTH[{$value}] is not supported", E_USER_WARNING);
515
+ return false;
516
+ }
517
+ break;
518
case CURLOPT_USERPWD:
519
$this->headers['Authorization'] = 'Basic ' . base64_encode($value);
520
0 commit comments