Skip to content

Commit 71cce93

Browse files
author
SH
committed
emiting HTTP errors
1 parent 3bd058d commit 71cce93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lescript.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ private function curl($method, $url, $data = null)
531531
$this->lastHeader = $header;
532532
$this->lastCode = curl_getinfo($handle, CURLINFO_HTTP_CODE);
533533

534-
if ($this->lastCode >= 300 && $this->lastCode < 200) {
534+
if ($this->lastCode >= 400 && $this->lastCode < 600) {
535535
throw new RuntimeException($this->lastCode."\n".$body);
536536
}
537537

0 commit comments

Comments
 (0)