Skip to content

Commit

Permalink
Enable push default value is false
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Aug 12, 2024
1 parent f4ccac8 commit f6140cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/conn/http2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ where
/// This setting can be changed during the life of a single HTTP/2
/// connection by sending another settings frame updating the value.
///
/// Default value of crate `h2`: `true`.
/// Default value of crate `h2`: `false`.
pub fn enable_push(&mut self, enabled: bool) -> &mut Self {
self.h2_builder.enable_push = enabled;
self
Expand Down
2 changes: 1 addition & 1 deletion src/proto/h2/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Default for Config {
max_send_buffer_size: DEFAULT_MAX_SEND_BUF_SIZE,
max_pending_accept_reset_streams: None,
header_table_size: None,
enable_push: true,
enable_push: false,
max_concurrent_streams: None,
}
}
Expand Down

0 comments on commit f6140cc

Please sign in to comment.