You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by iblis17 <gi...@git.apache.org> on 2016/05/12 12:44:08 UTC
[GitHub] couchdb-jquery-couch pull request: Fix HTTP Accept header for list...
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 <ib...@hs.ntnu.edu.tw>
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] couchdb-jquery-couch issue #5: Fix HTTP Accept header for list query
Posted by kxepal <gi...@git.apache.org>.
Github user kxepal commented on the issue:
https://github.com/apache/couchdb-jquery-couch/pull/5
Thank you!
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] couchdb-jquery-couch pull request #5: Fix HTTP Accept header for list query
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/couchdb-jquery-couch/pull/5
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---