Skip to content

Commit 3106567

Browse files
committed
Rename TRAILERS to TRAILER as it defined in RFC2616
1 parent f16ff22 commit 3106567

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aiohttp/hdrs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
SERVER = upstr('SERVER')
5050
SET_COOKIE = upstr('SET-COOKIE')
5151
TE = upstr('TE')
52-
TRAILERS = upstr('TRAILERS')
52+
TRAILER = upstr('TRAILER')
5353
TRANSFER_ENCODING = upstr('TRANSFER-ENCODING')
5454
UPGRADE = upstr('UPGRADE')
5555
URI = upstr('URI')

aiohttp/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ class Response(HttpMessage):
801801
hdrs.PROXY_AUTHENTICATE,
802802
hdrs.PROXY_AUTHORIZATION,
803803
hdrs.TE,
804-
hdrs.TRAILERS,
804+
hdrs.TRAILER,
805805
hdrs.TRANSFER_ENCODING,
806806
hdrs.UPGRADE,
807807
}

0 commit comments

Comments
 (0)