Skip to content

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

Open
@jrod567

Description

@jrod567

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions