Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1101

Headers from update handler not returned when a document is created/modified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.2
    • None
    • HTTP Interface
    • None
    • Fedora 14, 4 Cores, 4 GB RAM

    Description

      I expect from this update handler to return "X-my-header" header in response. It does not.

      function(doc,req) {
      var resp = { "headers" :

      { "X-my-header": "application" }

      , "body": "" };
      return [{_id:req.uuid}, resp];
      }

      Changing the return to:

      return [null, resp];

      helps.

      Attachments

        Activity

          People

            Unassigned Unassigned
            towhans Jiri Sedlacek
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: