-
Notifications
You must be signed in to change notification settings - Fork 377
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 #26
Headers #26
Conversation
RestClient::headermap headers; | ||
headers["If-Modified-Since"] = "Sat, 29 Oct 1994 19:43:31 GMT"; | ||
RestClient::response res = RestClient::get("http://httpbin.org/cache", headers); | ||
EXPECT_EQ(304, res.code); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change this code to run against the /headers
endpoint and check the actual return body that the header was set properly? I think that makes for a much better test case and I have the hope that if postmanlabs/httpbin#248 gets fixed, we can extend the unit tests to the other methods.
Awesome, thanks so much for this contribution! I left one comment for improving the unit test, if you could fix that, I'll merge it. |
OK, I've fixed that. Please check it. |
@ksamborski awesome, thank you! Can you also merge the current master into your branch? The pull request seems to have a conflict right now. |
I've merged it. I hope it's fine now :) |
awesome! thank you! |
Hi!
I needed some headers support so I added it. Please check if it's fine or not with your idea.
Regards,
Karol