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

Invalid content-type header parsing for Form URL encoded ? #63

Open
nicovn opened this issue Feb 27, 2024 · 1 comment
Open

Invalid content-type header parsing for Form URL encoded ? #63

nicovn opened this issue Feb 27, 2024 · 1 comment

Comments

@nicovn
Copy link

nicovn commented Feb 27, 2024

Could it be that the "application/x-www-url-formencoded" should be "application/x-www-form-urlencoded" ?

line 676 in jwt.go :
} else if contentType == "application/x-www-url-formencoded" {

When sending a form using Insomnia the form data is not included in the request sent to OPA

@eshepelyuk
Copy link
Member

Could it be that the "application/x-www-url-formencoded" should be "application/x-www-form-urlencoded" ?

line 676 in jwt.go : } else if contentType == "application/x-www-url-formencoded" {

When sending a form using Insomnia the form data is not included in the request sent to OPA

Looks like you're right.
Would you mind providing a PR for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants