diff --git a/starlette/responses.py b/starlette/responses.py index fcee324f..1fee57cc 100644 --- a/starlette/responses.py +++ b/starlette/responses.py @@ -163,7 +163,7 @@ class RedirectResponse(Response): self, url: typing.Union[str, URL], status_code: int = 302, headers: dict = None ) -> None: super().__init__(content=b"", status_code=status_code, headers=headers) - self.headers["location"] = quote_plus(str(url), safe=":/#?&=@[]!$&'()*+,;") + self.headers["location"] = quote_plus(str(url), safe=":/%#?&=@[]!$&'()*+,;") class StreamingResponse(Response):