This repository was archived by the owner on Jan 13, 2021. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -766,7 +766,8 @@ def test_incrementing_window_after_close(self):
766766        # the default max frame size (16,384 bytes). That will, on the third 
767767        # frame, trigger the processing to increment the flow control window, 
768768        # which should then not happen. 
769-         f  =  SettingsFrame (0 , settings = {h2 .settings .INITIAL_WINDOW_SIZE : 100 })
769+         f  =  SettingsFrame (0 , settings = {
770+             h2 .settings .SettingCodes .INITIAL_WINDOW_SIZE : 100 })
770771
771772        c  =  HTTP20Connection ('www.google.com' )
772773        c ._sock  =  DummySocket ()
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments