diff options
author | Urban Müller | 2021-10-28 15:34:18 +0200 |
---|---|---|
committer | Urban Müller | 2021-10-28 15:34:18 +0200 |
commit | 44a9d8898fe478b621e991db66700d70d45fd633 (patch) | |
tree | e44377a553580037c5915e06d1c29a3f9a844a4f | |
parent | 30b098f5b0a80621d99b802f5e9ff20c7f656892 (diff) | |
download | itools-44a9d8898fe478b621e991db66700d70d45fd633.tar.gz itools-44a9d8898fe478b621e991db66700d70d45fd633.tar.bz2 itools-44a9d8898fe478b621e991db66700d70d45fd633.zip |
allow combining postprocess with assoc
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |