From 6c95b7a2e3538024ff9fe856a8561187f69acea2 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 18 Jun 2014 17:57:40 +0200 Subject: [PATCH] fixed Accept header typo I can't figure out why the documentation says that the Accept header is set to \*/\* -> */* Especially since the example above (the verbose cURL output) clearly shows that the Accept header is '*/*'. --- share/doc/src/intro/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/doc/src/intro/api.rst b/share/doc/src/intro/api.rst index 9525bee570d..d68f6e683d2 100644 --- a/share/doc/src/intro/api.rst +++ b/share/doc/src/intro/api.rst @@ -281,7 +281,7 @@ browsers will display the JSON as text. .. _JSONView: http://jsonview.com/ Do you remember the :header:`Accept` request header and how it is set to -``\*/\* -> */*`` to express interest in any MIME type? If you send ``Accept: +``*/*`` to express interest in any MIME type? If you send ``Accept: application/json`` in your request, CouchDB knows that you can deal with a pure JSON response with the proper :header:`Content-Type` header and will use it instead of :mimetype:`text/plain`.