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

Chained GETs with SetHeader bug #18

Open
adriguerra opened this issue Aug 29, 2018 · 0 comments
Open

Chained GETs with SetHeader bug #18

adriguerra opened this issue Aug 29, 2018 · 0 comments
Labels

Comments

@adriguerra
Copy link
Contributor

adriguerra commented Aug 29, 2018

The following code snippet seems to put "foo":"bar" and "bar": "baz" as headers in the first GET and "foo": "bar" as header in the second GET, when it should really be the other way round.

from f in Http.SetHeader("foo", "bar").Get(new Uri("https://httpbin.org/get"))
              .SetHeader("bar", "baz").Get(new Uri("https://httpbin.org/get")).Text()
select new
{
    f.Client,
    f.Content,
}
@atifaziz atifaziz added the bug label Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants