Skip to content

Commit

Permalink
Update httptools dependency (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie authored Feb 10, 2020
1 parent 0feb738 commit 6598b05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_packages(package):
"click==7.*",
"h11>=0.8,<0.10",
"websockets==8.*",
"httptools==0.0.13 ;" + env_marker,
"httptools==0.1.* ;" + env_marker,
"uvloop>=0.14.0 ;" + env_marker,
]

Expand Down
2 changes: 1 addition & 1 deletion uvicorn/protocols/http/httptools_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def data_received(self, data):

try:
self.parser.feed_data(data)
except httptools.parser.errors.HttpParserError as exc:
except httptools.HttpParserError as exc:
msg = "Invalid HTTP request received."
self.logger.warning(msg)
self.transport.close()
Expand Down

0 comments on commit 6598b05

Please sign in to comment.