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

No Accept-Charset header #5021

Closed
marwin1991 opened this issue Nov 13, 2018 · 2 comments
Closed

No Accept-Charset header #5021

marwin1991 opened this issue Nov 13, 2018 · 2 comments

Comments

@marwin1991
Copy link

Content & configuration

I am having problem that generated spring-boot-app and also her on hub
https://app.swaggerhub.com/apis/ZBP/polish-api/2_1#/AIS/deleteConsent
when i am trying to execute anything i always get
Missing request header 'Accept-Charset' for method parameter of type String]
But generated curl works nice.

Describe the bug you're encountering

Ther is no 'Accept-Charset' when trying to execute from UI

To reproduce...

Steps to reproduce the behavior:

  1. Go to https://app.swaggerhub.com/apis/ZBP/polish-api/2_1#/AIS/deleteConsent
  2. Click on Try to Execute
  3. Open deveop console, tab Network, open last request
  4. No Accept-Charset

Expected behavior

Should be Accept-Charset

Screenshots

image
image

@shockey
Copy link
Contributor

shockey commented Nov 16, 2018

Hi @marwin1991! This is, unfortunately, out of our control.

There's a handful of forbidden header names that browsers are not allowed to touch in requests - some for security reasons, others because they're traditionally handled by the user agent (in this case, the browser).

This is the same root cause as #3956. In swagger-api/swagger-js#1163, I outlined some possible workaround solutions for this.

@marwin1991
Copy link
Author

Thank you for help. Issue ca be closed.

@lock lock bot locked and limited conversation to collaborators Nov 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants