Ticket #92: mmmurf.patch

File mmmurf.patch, 1.3 kB (added by mmmurf, 1 year ago)

patch file if you prefer that to pulling via github

  • a/ext/ed.h

    old new  
    8585 
    8686        protected: 
    8787                enum { 
    88                         PendingConnectTimeout = 4 // can easily be made an instance variable 
     88                        PendingConnectTimeout = 30 // can easily be made an instance variable 
    8989                }; 
    9090 
    9191                void (*EventCallback)(const char*, int, const char*, int); 
  • a/lib/protocols/httpclient.rb

    old new  
    146146      req << "Cookie: #{args[:cookie]}" 
    147147    end 
    148148 
    149     # Basic-auth stanza contributed by Mike Murphy. 
     149    # Basic-auth stanza contributed by Matt Murphy. 
    150150    if args[:basic_auth] 
    151       basic_auth_string = ["#{args[:basic_auth][:username]}:#{args[:basic_auth][:password]}"].pack('m').strip 
     151      basic_auth_string = ["#{args[:basic_auth][:username]}:#{args[:basic_auth][:password]}"].pack('m').strip.gsub(/\n/,'') 
    152152      req << "Authorization: Basic #{basic_auth_string}" 
    153153    end  
    154154