From fb022ddffc0b50a9a597e8809c05190eefe55afb Mon Sep 17 00:00:00 2001 From: Florents Tselai Date: Sat, 2 Jan 2021 23:55:23 +0200 Subject: [PATCH] Fix query --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ecc5b6..c3103a0 100644 --- a/README.md +++ b/README.md @@ -261,7 +261,7 @@ For such cases you can set the `CURLOPT_USERAGENT` option SELECT http_set_curlopt('CURLOPT_USERAGENT', 'Examplebot/2.1 (+http://www.example.com/bot.html) Contact abuse@example.com'); -SELECT content::json ->> 'user-agent' FROM http_get('http://httpbin.org/user-agent'); +SELECT status, content::json ->> 'user-agent' FROM http_get('http://httpbin.org/user-agent'); ``` ``` status | user_agent