couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Davies (JIRA)" <>
Subject [jira] Commented: (COUCHDB-453) If "Accept: foo" header is sent, server returns a render_error
Date Wed, 05 Aug 2009 22:55:14 GMT


Jason Davies commented on COUCHDB-453:

I meant the first.  However, I didn't realise that Chris had originally intended to return
a 406 response, which upon reflection is the preferred solution as you point out.  It just
wasn't working properly and sent a 500 "render_error" instead.  He has now fixed it and it
returns a 406, so I think we are all in agreement now.  Thanks for your attention to detail!

> If "Accept: foo" header is sent, server returns a render_error
> --------------------------------------------------------------
>                 Key: COUCHDB-453
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>            Reporter: Jason Davies
>         Attachments: render.js.patch
> The full error is: {"error":"render_error","reason":"function raised error: [object Object]"}
> This occurs because there is no match for the "foo" mime type.  Simple patch to follow
that makes us fall back to sending the first mime type provided.  "Be conservative in what
you send, liberal in what you accept".

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message