lib/async/http/protocol/http2/stream.rb in async-http-0.38.3 vs lib/async/http/protocol/http2/stream.rb in async-http-0.39.0

- old
+ new

@@ -16,17 +16,17 @@ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -require 'http/protocol/http2/stream' +require 'protocol/http2/stream' module Async module HTTP module Protocol module HTTP2 - class Stream < ::HTTP::Protocol::HTTP2::Stream + class Stream < ::Protocol::HTTP2::Stream def initialize(delegate, *args) super(*args) @delegate = delegate @@ -78,10 +78,10 @@ @body = nil end # @body.read above might take a while and a stream reset might be received in the mean time. unless closed? - send_data(nil, ::HTTP::Protocol::HTTP2::END_STREAM) + send_data(nil, ::Protocol::HTTP2::END_STREAM) end return false end