Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit f97d6ee

Browse files
committed
HTTP20Connection: Fix use of ENABLE_PUSH
Fixes #372
1 parent 18b629b commit f97d6ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hyper/http20/connection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def _connect_upgrade(self, sock):
403403
with self._conn as conn:
404404
conn.initiate_upgrade_connection()
405405
conn.update_settings(
406-
{h2.settings.ENABLE_PUSH: int(self._enable_push)}
406+
{h2.settings.SettingCodes.ENABLE_PUSH: int(self._enable_push)}
407407
)
408408
self._send_outstanding_data()
409409

@@ -424,7 +424,7 @@ def _send_preamble(self):
424424
with self._conn as conn:
425425
conn.initiate_connection()
426426
conn.update_settings(
427-
{h2.settings.ENABLE_PUSH: int(self._enable_push)}
427+
{h2.settings.SettingCodes.ENABLE_PUSH: int(self._enable_push)}
428428
)
429429
self._send_outstanding_data()
430430

0 commit comments

Comments
 (0)