postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.82k stars 839 forks source link

Accept Encoding value is not as per RFC standard #12674

Open raghumirajkar opened 6 months ago

raghumirajkar commented 6 months ago

Is there an existing issue for this?

Describe the Issue

The Accept-Encoding header value in POSTman API is not as per RFC standard as mentioned here. The value should be only gzip, not application/gzip The request is also sent with Accept-Encoding: application/gzip The server sends the data uncompressed if this header is sent as application/gzip Not sure if this is expected/intentional

Steps To Reproduce

  1. Create a new request
  2. Under Headers tab, select Accept-Encoding as key
  3. type gzip in value text box

Screenshots or Videos

image

image

Operating System

Windows

Postman Version

10.23.5

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

CommanderStorm commented 5 months ago

Clarifying what @raghumirajkar reported:

The default set is gzip, deflate, br image

The problem only occurs if this header is overridden and the first value is blindly chosen: image