couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michel Legnered <>
Subject HTTP Rewrite Handler: Strings in queries
Date Sun, 09 Jan 2011 13:29:56 GMT

I have this rewrite:
"from": "/u/:key",
"to": "_list/pouch/user-items",
"method": "GET",
"query": {"key": ":key"}

..which gives me: {"error":"bad_request","reason":"invalid UTF-8 JSON"}

Nothing wrong with the JSON, however, the rewrite handler rewrites to this

somekey needs to be in double quotes as it is a string. How can I get the
rewrite handler to produce ?key="somekey" ?

// antics

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message