lib/http/protocol/http2/settings_frame.rb in http-protocol-0.2.1 vs lib/http/protocol/http2/settings_frame.rb in http-protocol-0.2.2
- old
+ new
@@ -57,10 +57,10 @@
# Indicates the sender's initial window size (in octets) for stream-level flow control.
attr :initial_window_size
def initial_window_size= value
- if value < MAXIMUM_ALLOWED_WINDOW_SIZE
+ if value <= MAXIMUM_ALLOWED_WINDOW_SIZE
@initial_window_size = value
else
raise FlowControlError, "Invalid value for initial_window_size: #{value} > #{MAXIMUM_ALLOWED_WINDOW_SIZE}"
end
end