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

curl_easy_header fails when requesting CURLH_PSEUDO headers #9235

Closed
charonn0 opened this issue Jul 31, 2022 · 1 comment
Closed

curl_easy_header fails when requesting CURLH_PSEUDO headers #9235

charonn0 opened this issue Jul 31, 2022 · 1 comment

Comments

@charonn0
Copy link
Contributor

I did this

Call curl_easy_header with the CURLH_PSEUDO origin, either alone or in a bitmask of other origins.

I expected the following

To receive a pointer to the header struct. Instead libcurl returns CURLHE_BAD_ARGUMENT. It looks like pseudo headers were omitted from a sanity check: https://github.com/curl/curl/blob/master/lib/headers.c#L77

curl/libcurl version

libcurl/7.84.0 OpenSSL/3.0.4 (Schannel) zlib/1.2.12 brotli/1.0.9 libidn2/2.3.2 libssh2/1.10.0 nghttp2/1.48.0 ngtcp2/0.6.0 nghttp3/0.5.0 libgsasl/1.10.0

operating system

Windows 10 x64

@bagder
Copy link
Member

bagder commented Jul 31, 2022

Seems entirely correct. Feel free to submit a PR or I will do it soon.

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

Successfully merging a pull request may close this issue.

2 participants