Skip to content

Commit 44517f8

Browse files
committed
fix dict get
1 parent de9139e commit 44517f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

localstack/services/sqs/query_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def handle_request(request: Request, region: str) -> Response:
138138
# some SDK (PHP) still send requests to the Queue URL even though the JSON spec does not allow it in the
139139
# documentation. If the request is `json`, raise `NotFound` so that we continue the handler chain and the provider
140140
# can handle the request
141-
if request.headers.get("Content-Type").lower() == "application/x-amz-json-1.0":
141+
if request.headers.get("Content-Type", "").lower() == "application/x-amz-json-1.0":
142142
raise NotFound
143143

144144
request_id = long_uid()

0 commit comments

Comments
 (0)