Fix HTTP Accept header for list query master 5/head
authorIblis Lin <iblis@hs.ntnu.edu.tw>
Thu, 12 May 2016 12:31:10 +0000 (20:31 +0800)
committerIblis Lin <iblis@hs.ntnu.edu.tw>
Thu, 12 May 2016 12:31:10 +0000 (20:31 +0800)
commit9806ac965cb03fce90423bad3d5f771a40ac9fc1
tree5b3cf9e27b0a5dafc28ee2fd75dc97087135d6d1
parent102e663aab0a7fe4305dee866c55afcb22df6348
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
jquery.couch.js