Skip to content

Commit

Permalink
Correctly reset the parser (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanp committed Sep 9, 2021
1 parent f810e1a commit d6186a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion http.gemspec
Expand Up @@ -30,7 +30,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency "addressable", "~> 2.8"
gem.add_runtime_dependency "http-cookie", "~> 1.0"
gem.add_runtime_dependency "http-form_data", "~> 2.2"
gem.add_runtime_dependency "llhttp-ffi", "~> 0.3.0"
gem.add_runtime_dependency "llhttp-ffi", "~> 0.4.0"

gem.add_development_dependency "bundler", "~> 2.0"

Expand Down
2 changes: 1 addition & 1 deletion lib/http/response/parser.rb
Expand Up @@ -15,7 +15,7 @@ def initialize
end

def reset
@parser.finish
@parser.reset
@handler.reset
@header_finished = false
@message_finished = false
Expand Down

0 comments on commit d6186a5

Please sign in to comment.