Unverified Commit 42cc7cf5 authored by david-perez's avatar david-perez Committed by GitHub
Browse files

Add comment before dumping headers in Python server example (#3083)

Addresses
https://github.com/awslabs/smithy-rs/pull/2905#discussion_r1366932417.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent a1ec8b89
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -179,6 +179,8 @@ async def check_content_type_header(request: Request, next: Next) -> Response:
    if content_type in ["application/json", "application/vnd.amazon.eventstream"]:
        logging.debug("found valid `%s` content type", content_type)
    else:
        # Note that dumping all headers may log sensitive information! You
        # probably don't want to do this in production.
        logging.warning(
            "invalid content type %s, dumping headers: %s",
            content_type,