On Tue, Sep 16, 2014 at 8:07 AM, Stefan Adams <[email protected]> wrote:
> > *Content-Type: text/plain; charset=utf-8* > > How silly that CouchDB would respond with JSON of content type text/plain! > Thanks for the hints everyone! *If you send Accept: application/json in your request, CouchDB knows that you can deal with a pure JSON response with the proper Content-Type header and will use it instead of text/plain. <http://guide.couchdb.org/draft/api.html>* Therefore, providing an Accept header to 'mojo get' succeeds! $ mojo get *-H 'Accept: application/json'* ' http://localhost:5984/rtc/_design/lookup/_view/user?key=["a21d7f30-f5f8-466e-aff9-25196b576dfe","ab7093f9bbc349a12c52b449c0002354"]' */rows/0/value/device* a21d7f30-f5f8-466e-aff9-25196b576dfe -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
