Skip to content

Instantly share code, notes, and snippets.

@trevorrowe
Created June 29, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trevorrowe/bb041b0d7b57df239d43 to your computer and use it in GitHub Desktop.
Save trevorrowe/bb041b0d7b57df239d43 to your computer and use it in GitHub Desktop.
Expect-100 continue PUT bug - sever
require 'net/http'
require 'logger'
req = Net::HTTP::Put.new('/', { 'expect' => '100-continue' })
req.body = 'data'
http = Net::HTTP.new('localhost', 3000)
http.continue_timeout = 1
http.set_debug_output(Logger.new($stdout))
http.request(req)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment