Skip to content

The REST API returns JSON payload with Content-Type "text/string" #49

Description

@mgZenMaster

This makes some clients need to bend over backwards to process the results. The fix for this seems to be fairly easy, just change the HUG annotations, for example:
@hug.post("/dep", output=hug.output_format.json)
This would be, of course, a change in the spacy-services repository, but I can't open an issue there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions