GitHub user iblis17 opened a pull request:
https://github.com/apache/couchdb-jquery-couch/pull/5
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
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/iblis17/couchdb-jquery-couch list-query
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-jquery-couch/pull/5.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #5
----
commit 9806ac965cb03fce90423bad3d5f771a40ac9fc1
Author: Iblis Lin <[email protected]>
Date: 2016-05-12T12:31:10Z
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
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---