Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change code formatting
  • Loading branch information
hkwi committed Feb 21, 2017
commit ddbaefd930dc4977865b70c45815fd6bbd206fe2
7 changes: 4 additions & 3 deletions hyper/http11/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ def _add_upgrade_headers(self, headers):
http2_settings = SettingsFrame(0)
http2_settings.settings[SettingsFrame.INITIAL_WINDOW_SIZE] = 65535
if self._enable_push is not None:
http2_settings.settings[
SettingsFrame.ENABLE_PUSH] = int(self._enable_push)
http2_settings.settings[SettingsFrame.ENABLE_PUSH] = (
int(self._enable_push)
)
encoded_settings = base64.urlsafe_b64encode(
http2_settings.serialize_body()
)
Expand Down Expand Up @@ -352,7 +353,7 @@ def _send_file_like_obj(self, fobj):
Handles streaming a file-like object to the network.
"""
while True:
block = fobj.read(16*1024)
block = fobj.read(16 * 1024)
if not block:
break

Expand Down