Skip to content

Commit b625179

Browse files
committed
Simplify
1 parent fa5cfa9 commit b625179

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aiohttp/web_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def forwarded(self) -> tuple[Mapping[str, str], ...]:
320320
match = _FORWARDED_PAIR_RE.match(field_value, pos)
321321
if match is not None: # got a valid forwarded-pair
322322
name, value, port = match.groups()
323-
if value[0] == '"' and value[-1] == '"':
323+
if value[0] == value[-1] == '"':
324324
value = value[1:-1]
325325
if port:
326326
value += port

0 commit comments

Comments
 (0)