Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 30, 2024
1 parent c92e241 commit e0ab143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/servestatic/responders.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def get_response(self, method, request_headers):
if query_string and self.preserve_query_string:
headers = list(self.response.headers)
name, value = headers[-1]
value = "{}?{}".format(value, query_string)
value = f"{value}?{query_string}"
headers[-1] = (name, value)
return Response(self.response.status, headers, None)
return self.response
Expand Down

0 comments on commit e0ab143

Please sign in to comment.