From 44a9d8898fe478b621e991db66700d70d45fd633 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 28 Oct 2021 15:34:18 +0200 Subject: allow combining postprocess with assoc --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index f37bf97..c7369f2 100644 --- a/it_url.class +++ b/it_url.class @@ -150,7 +150,7 @@ function _get($p = [], $timeout = null) usleep($p['fetchsleep'] * 1000000); if ($p['assoc']) - $result = $result !== false ? [ 'status' => $this->result, 'data' => $this->data, 'headers' => $this->headers, 'cookies' => $this->cookies, 'errstr' => $this->errstr ] : []; + $result = $result !== false ? [ 'status' => $this->result, 'data' => $result, 'headers' => $this->headers, 'cookies' => $this->cookies, 'errstr' => $this->errstr ] : []; return $result; } -- cgit v1.2.3