swagger-api / swagger-api/swagger-ui

Unable to omit headers that user agent sets default values for

Open
#4,110 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug version: 3.x
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? 2.7.0
Which Swagger-UI version? 2.7.0
How did you install Swagger-UI? POM
Which browser & version? Chrome 63.0.3239.132 (64bit)
Which operating system? MacOS High Sierra 10.13.2
Swagger

(code generated spring fox)
https://gist.github.com/hannes-angst/bd8e413060c973efce9b8667f0921d17

Expected Behavior

Iff Accept-Language not specified, no Accept-Language is sent in the request.

Current Behavior

If Accept-Language not specified, the browserAccept-Language is sent.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Swagger UI 2.7.0 using the provided Springfox-generated Swagger document and Chrome. Trace how an unspecified Accept-Language header becomes part of the browser request, then verify that the request omits it when the parameter is not provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, openapi
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.