def redirect.stays
import ezhttp@0.22.0.0/src/redirect.bend as Redirectimport Base
185# a Location the client does not follow: empty, a fragment, another scheme
186def redirect.stays(+loc: String) -> Bool:
187 Bool.or(String.is_empty(loc), Bool.or(String.starts_with(loc, "#"),
188 redirect.schemed(loc)))