Trimmed down features of CIMultiDict

This commit is contained in:
Channel Cat
2017-01-16 16:12:42 -08:00
parent 48d496936a
commit 41918eaf0a
3 changed files with 23 additions and 6 deletions

View File

@@ -106,11 +106,11 @@ class HTTPResponse:
for name, value in self.headers.items():
try:
headers += (
b'%b: %b\r\n' % (name.encode(), value.encode('utf-8')))
b'%b: %b\r\n' % (name.title().encode(), value.encode('utf-8')))
except AttributeError:
headers += (
b'%b: %b\r\n' % (
str(name).encode(), str(value).encode('utf-8')))
str(name).title().encode(), str(value).encode('utf-8')))
# Try to pull from the common codes first
# Speeds up response rate 6% over pulling from all