def redirect.stays
import emerging-ezhttp@0.21.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)))