-
Notifications
You must be signed in to change notification settings - Fork 259
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
HTTP client doesn't automatically include the Host header #357
Comments
Which version of rust-bitcoincore-rpc are you using? This header was added to rust-jsonrpc in http://github.com/apoelstra/rust-jsonrpc/pull/85 which appeared in jsonrpc 0.14.1 used by this library. Or is this a new issue introduced by our switch to minreq (but which has not been released yet)? |
@apoelstra |
0.17 or 0.18 will definitely work because they have a fix for this particular issue. 0.19 possibly reintroduced it when we switched the underlying HTTP transport to minreq. |
it seems the problem is that rust-jsonrpc convert domain name to IP address and as a result we got request like: Which will be blocked by cloudflare with a 1003 error because host contains IP too instead domain name |
Is this on 0.19 or pre-0.19? The rust-jsonrpc |
0.17, 0.18, 0.19 |
@mprakhov17 Any progress on this? |
I'm using
test_against_node.rs
exampleWhen I set up my URL (as an example
http://bitcoin.test.node
), DNS name during request converted to11.11.11.11
and I', getting 400 response due to Host header is not added (Cloudflare 1003 error)Is it possible to automatically include the Host header or do it manually?
The text was updated successfully, but these errors were encountered: