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

Fix LT HTTP request Content-Type #276

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Javier-varez
Copy link

The LanguageTool check endpoint actually expects an HTTP request with an "application/x-www-form-urlencoded" Content-Type. Currently ltex-ls uses the "application/json" Content-Type for the HTTP request, but this does not play well with some third-party tools that follow the same LanguageTool API like https://github.com/cpg314/ltapiserv-rs.

The official LanguageTool HTTP server does not seem to be affected by this bug.

See the API documentation: https://languagetool.org/http-api/swagger-ui/#!/default/post_check

The LanguageTool check endpoint actually expects an HTTP request with an
"application/x-www-form-urlencoded" Content-Type. Currently ltex-ls
uses the "application/json" Content-Type for the HTTP request, but this
does not play well with some third-party tools that follow the same
LanguageTool API like https://github.com/cpg314/ltapiserv-rs.

The official LanguageTool HTTP server does not seem to be affected by
this bug.

See the API documentation: https://languagetool.org/http-api/swagger-ui/#!/default/post_check
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

1 participant