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

RestClient default headers missing from RestResponse.Request.Parameters #2282

Open
jrod567 opened this issue Feb 10, 2025 · 0 comments
Open
Labels

Comments

@jrod567
Copy link

jrod567 commented Feb 10, 2025

Describe the bug
RestClient default headers added to the RestClient are not included in RestRsponse.Request.Parameters collection when using RestClient.AddDefaultHeader method

To Reproduce

Image

RestClient restClient = new RestClient("https://swapi.dev/api"); restClient.AddDefaultHeader("Authorization", "1234"); RestRequest rq = new RestRequest("/films", Method.Get); RestResponse rs = restClient.Execute(rq);

Expected behavior
RestClient default headers should be included in the RestResponse.Request.Parameters collection

Stack trace
No exceptions; just missing data

Desktop (please complete the following information):

  • OS: Windows
  • .NET 6
  • RestSharp v112
@jrod567 jrod567 added the bug label Feb 10, 2025
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

1 participant