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:
parent
61c93778dc
commit
aeba4a61ee
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue