Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on send json POST with MiniSSL #1089

Closed
AdamBialas opened this issue Sep 13, 2016 · 0 comments
Closed

error on send json POST with MiniSSL #1089

AdamBialas opened this issue Sep 13, 2016 · 0 comments

Comments

@AdamBialas
Copy link

AdamBialas commented Sep 13, 2016

Error on sending JsonRest data when use Puma::MiniSSL::Socket

can't set HTTP_11_100 when client.io is Puma::MiniSSL::Socket

server.rb
def process_client(client, buffer)
begin
if client.env[HTTP_EXPECT] == CONTINUE
client.io << HTTP_11_100

my solution is

def process_client(client, buffer)
begin

    if client.env[HTTP_EXPECT] == CONTINUE
      client.io << HTTP_11_100 if !client.io.kind_of? Puma::MiniSSL::Socket
    end

and is working but i don't think this is perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant