This repository has been archived by the owner on May 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HTTP Accept header for list query
Given following list function ``` function(head, req) { provides('text', function(){ start({ 'headers': { 'Content-Type': 'text/plain' } }); send('Hello list!'); }); } ``` It will get HTTP 406 error, because the default Accept header is set to `application/json`. See Also: couchapp/couchapp#234
- Loading branch information
Showing
1 changed file
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters