Skip to content
New issue

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

Headers not sent properly #466

Closed
patriksh opened this issue Jan 4, 2022 · 1 comment
Closed

Headers not sent properly #466

patriksh opened this issue Jan 4, 2022 · 1 comment

Comments

@patriksh
Copy link
Contributor

patriksh commented Jan 4, 2022

Headers aren't properly added to curl when making a request.

A header array passed to curl_setopt is associative, like this: ["Cache-Control"] => "max-age=0" .

But it should be a regular indexed array that looks like this: [0] => "Cache-Control: max-age=0".

Not sure did I use the proper terms but I think you can understand me.

@oscarotero
Copy link
Owner

Understood. Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants