Oldes/Rebol3

[HTTP] exists? on not existing URL throws error instead of FALSE

Oldes opened this issue · 0 comments

Oldes commented
>> exists? https://www.google.com/not-exists
 [HTTP] Opening connection: tls://www.google.com:443
 [HTTP] Request: {HEAD /not-exists HTTP/1.1^M
Accept: */*^M
Accept-charset: utf-8^M
Accept-Encoding: gzip,deflate^M
Host: www.google.com^M
User-Agent: REBOL^M
}
 [HTTP] Headers: [
    Content-Length: "1571"
    Content-Encoding: none
    Transfer-Encoding: none
    Last-Modified: none
    Content-Type: "text/html; charset=UTF-8"
    Referrer-Policy: "no-referrer"
    Date: "Sat, 15 Feb 2020 15:47:20 GMT"
    Alt-Svc: {quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000}
]
 [HTTP] Throwing error: Server error:  line
** Access error: protocol error: "Server error: HTTP/1.1 404 Not Found"

It should just return false.