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

Commits on May 12, 2016

  1. 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
    iblislin committed May 12, 2016
    Configuration menu
    Copy the full SHA
    9806ac9 View commit details
    Browse the repository at this point in the history