-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Shouldn't hyper::header::Authorization be in headers instead of items? #1185
Comments
Unfortunately that wouldn't work. Rocket could implement it manually for |
Bugger... it's ashame we don't have fall back where you can add a header by supplying a simple name/value pair. Or is there an option for that which I've missed? I've worked around it for now by sending the data as a cookie instead of in the header. Just trying to automate testing my API with CI :) |
You can use |
Sweet! that'll do :) |
@jebrosen hmm, it's complaining rocket::http::hyper::header::Header is a private member. Is there a different path to it? |
I think that's not just a different name, it's the wrong |
Hmmm wonder where I got the other path from, anyway that worked :) |
This is gone in |
I'm getting a compilation error on this code:
Which is:
If I understand the code here:
https://github.com/SergioBenitez/Rocket/blob/master/core/http/src/hyper.rs#L49
correctly, shouldn't Authorization be in
import_hyper_headers!
instead ofimport_hyper_items!
?The text was updated successfully, but these errors were encountered: