lib/async/http/protocol/http1/server.rb in async-http-0.32.0 vs lib/async/http/protocol/http1/server.rb in async-http-0.33.0

- old
+ new

@@ -16,24 +16,23 @@ # 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/http11/connection' -require_relative '../http1/connection' +require_relative 'connection' module Async module HTTP module Protocol module HTTP1 - module Server + class Server < Connection def next_request # The default is true. return nil unless @persistent request = Request.new(self) - unless persistent?(request.headers) + unless persistent?(request.version, request.headers) @persistent = false end return request rescue