CouchDB
  1. CouchDB
  2. COUCHDB-1175

Improve content type negotiation for couchdb JSON responses

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Skill Level:
      New Contributors Level (Easy)

      Description

      Currently we ignore qvalues when negotiation between 'application/json' and 'text/plain' when returning JSON responses.

      Specifically, we test directly for 'application/json' or 'text/plain' in the Accept header. Different branches have different bugs, though. Trunk returns 'application/json' if 'application/json' is present at all, even if it's less preferred than 'text/plain' when qvalues are accounted for.

      We should follow the standard.

        Issue Links

          Activity

          Robert Newson created issue -
          Robert Newson made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Robert Newson made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Assignee Robert Newson [ rnewson ]
          Robert Newson made changes -
          Fix Version/s 1.1.1 [ 12316395 ]
          Fix Version/s 1.1 [ 12314933 ]
          Priority Major [ 3 ] Blocker [ 1 ]
          Robert Newson made changes -
          Fix Version/s 1.1.1 [ 12316395 ]
          Randall Leeds made changes -
          Link This issue is related to COUCHDB-234 [ COUCHDB-234 ]
          Robert Newson made changes -
          Assignee Robert Newson [ rnewson ]
          Jan Lehnardt made changes -
          Fix Version/s 1.3 [ 12318350 ]
          Fix Version/s 1.2 [ 12315198 ]
          Jan Lehnardt made changes -
          Fix Version/s 1.3 [ 12318350 ]
          Dave Cottlehuber made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Robert Newson
            • Votes:
              9 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development