Skip to content

Commit 5404a0d

Browse files
committed
improve warning
1 parent 7f385a5 commit 5404a0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

azure/functions/_http_wsgi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def _get_port(self, parsed_url, lowercased_headers: Dict[str, str]) -> int:
126126
port = int(match.group(1))
127127
return port
128128
# If no valid port found, log a warning
129-
self._logger.warning("Invalid X-Forwarded-Port header value: %s", part)
129+
self._logger.warning("Invalid X-Forwarded-Port header value: %s. "
130+
"Using default port 80", part)
130131
elif getattr(parsed_url, 'port', None):
131132
return int(parsed_url.port)
132133
elif parsed_url.scheme == 'https':

0 commit comments

Comments
 (0)