-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
RestResponse does not contain Content-Disposition header #1684
Comments
Could you clarify if the content-disposition header is missing in the request or you just want to have it in the response? |
I just want it in the response. Here is some "pseudo code" using wiremock.net:
In the case of version 107.0.1 response.Headers does not contain any content related headers. The old versions contains all headers e.g. Content-Type, Content-Length and also the Content-Disposition. These are also mapped to the response.ContentType properties but are still present in the response.Headers collection. I am sure that this is not an error of RestSharp because the |
Check the last preview. I also added a property that contains the full |
107.0.2-alpha.5 has all the necessary fixes. |
Expected Behavior
Headers should contain all headers e.g. also "Content-Disposition" header.
Actual Behavior
No Content-Disposition header is available.
Some "Content" related header values are mapped to the RestResponse object but not all headers.
https://github.com/restsharp/RestSharp/blob/dev/src/RestSharp/Response/RestResponse.cs#L111
This behavior is not listed in the migration guide.
Should I really implement this by my own?
Specifications
The text was updated successfully, but these errors were encountered: