Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Fix HTTP Accept header for list query #5

Merged
merged 1 commit into from
Jun 1, 2016

Conversation

iblislin
Copy link
Member

@iblislin iblislin commented May 12, 2016

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

COUCHDB-3018

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
@kxepal
Copy link
Member

kxepal commented Jun 1, 2016

Thank you!

@asfgit asfgit merged commit 9806ac9 into apache:master Jun 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants