We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorization
Authentication
Since the word is used confused in practice, we need to support both at the same time.
if(count($headers) > 0) { foreach($headers as $k=>$v) { if(is_array($v)) { if($k == "Authorization" || $k == "Authentication") { if($v[0] == "Basic" && check_array_length($v, 3) == 0) { $options[CURLOPT_USERPWD] = sprintf("%s:%s", make_safe_argument($v[1]), make_safe_argument($v[2])); } else { $_headers[] = sprintf("%s: %s", make_safe_argument($k), make_safe_argument(implode(" ", $v))); } } } else { $_headers[] = sprintf("%s: %s", make_safe_argument($k), make_safe_argument($v)); } } $options[CURLOPT_HTTPHEADER] = $_headers; }
The text was updated successfully, but these errors were encountered:
fixed
Sorry, something went wrong.
No branches or pull requests
Since the word is used confused in practice, we need to support both at the same time.
The text was updated successfully, but these errors were encountered: