JuliaWeb / HTTP.jl

HTTP for Julia
https://juliaweb.github.io/HTTP.jl/stable/
Other
626 stars 177 forks source link

Restrict `is(redirect|error)` to integers #1117

Closed fredrikekre closed 9 months ago

fredrikekre commented 9 months ago

I used isredirect on a HTTP.Stream and instead of getting a MethodError this returned false. This patch limits the input to isredirect and iserror to Integers.