[ 
https://issues.apache.org/jira/browse/COUCHDB-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Davies updated COUCHDB-453:
---------------------------------

    Attachment: render.js.patch

Fall back to first mime type provided if we can't match what is in the Accept 
header.

> If "Accept: foo" header is sent, server returns a render_error
> --------------------------------------------------------------
>
>                 Key: COUCHDB-453
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-453
>             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.

Reply via email to