1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Move sending except into client body ready. Fixes #1210

This commit is contained in:
Evan Phoenix 2017-02-28 09:08:09 -08:00
parent 61c93778dc
commit aeba4a61ee
2 changed files with 7 additions and 4 deletions

View file

@ -216,6 +216,13 @@ module Puma
end
def setup_body
if @env[HTTP_EXPECT] == CONTINUE
# TODO allow a hook here to check the headers before
# going forward
@io << HTTP_11_100
@io.flush
end
@read_header = false
body = @parser.body

View file

@ -418,10 +418,6 @@ module Puma
def process_client(client, buffer)
begin
if client.env[HTTP_EXPECT] == CONTINUE
client.io << HTTP_11_100
end
clean_thread_locals = @options[:clean_thread_locals]
close_socket = true