Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-765

RPC server returns JSON data with Content-Type set to text/html

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4.0-incubating
    • 1.4.0-incubating
    • None
    • None
    • Patch

    Description

      The server currently always sets Content-Type to text/html, even though it's actually returning JSON data. That makes it hard to distinguish JSON response from a Jetty-generated error page. I suggest changing it to application/json (RFC 4627). I'm experimenting with writing a Python client for the RPC and I'd like to generate better exceptions than "something failed". How to handle error in the RPC is a discussion for another ticket, but this seems like the first obvious step.

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            lukaslalinsky Lukas Lalinsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: