Created
June 29, 2015 20:59
-
-
Save trevorrowe/bb041b0d7b57df239d43 to your computer and use it in GitHub Desktop.
Expect-100 continue PUT bug - sever
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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