diff options
Diffstat (limited to 'netlib')
| -rw-r--r-- | netlib/http2/protocol.py | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/netlib/http2/protocol.py b/netlib/http2/protocol.py index 459c2293..feac220c 100644 --- a/netlib/http2/protocol.py +++ b/netlib/http2/protocol.py @@ -61,7 +61,6 @@ class HTTP2Protocol(object):          assert settings_ack_frame.flags & frame.Frame.FLAG_ACK          assert len(settings_ack_frame.settings) == 0 -      def next_stream_id(self):          if self.current_stream_id is None:              self.current_stream_id = 1 @@ -89,7 +88,10 @@ class HTTP2Protocol(object):              self.http2_settings[setting] = value -        self.send_frame(frame.SettingsFrame(state=self, flags=frame.Frame.FLAG_ACK)) +        self.send_frame( +            frame.SettingsFrame( +                state=self, +                flags=frame.Frame.FLAG_ACK))      def _create_headers(self, headers, stream_id, end_stream=True):          # TODO: implement max frame size checks and sending in chunks  | 
