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

Use a valid Content-Type when extracting token #1051

Merged
merged 2 commits into from Aug 5, 2020
Merged

Use a valid Content-Type when extracting token #1051

merged 2 commits into from Aug 5, 2020

Conversation

DVDAndroid
Copy link
Contributor

@DVDAndroid DVDAndroid commented Jul 29, 2020

I'm calling a POST request /api/login with JSON payload (username, password) to get a valid JWT.
When I try to parse the request I get an exception Bad Content-Type header: cty. I cannot manually replace this header due to engine limitation (ktor), so this is the only solution to my issue.

CI build OK: https://app.circleci.com/pipelines/github/DVDAndroid/filebrowser
Docker images: https://hub.docker.com/repository/docker/dvdandroid/filebrowser
Content-Type header standard: https://www.w3.org/Protocols/rfc1341/4_Content-Type.html

Sincerely I don't know why content type is cty

@o1egl o1egl merged commit c3450f4 into filebrowser:master Aug 5, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants