diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class index e3139c8..e557ccf 100644 --- a/it_url.class +++ b/it_url.class @@ -278,6 +278,8 @@ function request($p=array()) $this->errstr = "maxlength reached"; } else if ($p['filemtime'] && ($url->result == 304)) { $result = true; # Not modified, success but no data + } else if ($url->result == 414) { + it::error((array)$p['it_error'] + ['title' => "Request-URI Too Long: " . substr($url->url, 0, 100) . "...(truncated " . (strlen($url->url) - 100) . " bytes)", 'body' => curl_getinfo($curl) + ($p['verbose'] ? ['verbose' => $this->verbose] : [])]); } else { $result =& $url->data; } |