Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions mrok/proxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@
headers[idx_proto] = (k, b"https")

def _format_path(self, scope: Scope) -> str:
raw_path = scope.get("raw_path")
if raw_path:
return raw_path.decode()
path = scope.get("raw_path")
if path:
return path.decode()
else:
path = scope.get("path", "/")

Check warning on line 179 in mrok/proxy/app.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this assignment to local variable 'path'; the value is never used.

See more on https://sonarcloud.io/project/issues?id=softwareone-platform_mrok&issues=AZ2HFSIt9MN2bVHg38dZ&open=AZ2HFSIt9MN2bVHg38dZ&pullRequest=63
q = scope.get("query_string", b"")
path = scope.get("path", "/")
path_qs = path
Expand Down
Loading