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
1 file changed
tree: 5b3cf9e27b0a5dafc28ee2fd75dc97087135d6d1
  1. libs/
  2. test/
  3. .gitignore
  4. bower.json
  5. jquery.couch.js
  6. LICENSE
  7. README.md
README.md

couchdb-jquery-couch

$.couch is used to communicate with a CouchDB server.

Tests

Install the dependencies:

$ bower install

Enable CORS:

curl -X PUT http://localhost:5984/_config/httpd/enable_cors -d '"true"'
curl -X PUT http://localhost:5984/_config/cors/origins -d '"*"'

Restart CouchDB & open test/runner.html in a browser to run the testsuite.