From 251210605640538e336a038da0224e0936583602 Mon Sep 17 00:00:00 2001 From: Ilya Grigorik Date: Thu, 17 Feb 2011 00:05:25 -0500 Subject: [PATCH] 100 continue case.. grr IIS: http://forums.iis.net/p/1162153/1922653.aspx --- spec/external_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/external_spec.rb b/spec/external_spec.rb index 6b564905..b3886cc1 100644 --- a/spec/external_spec.rb +++ b/spec/external_spec.rb @@ -29,6 +29,19 @@ } end + it "should handle a 100 continue" do + EventMachine.run { + url = 'http://ws.serviceobjects.com/lv/LeadValidation.asmx/ValidateLead_V2' + http = EventMachine::HttpRequest.new(url).post :body => {:name => :test} + + http.errback { failed(http) } + http.callback { + http.response_header.status.should == 100 + EventMachine.stop + } + } + end + context "keepalive" do it "should default to non-keepalive" do EventMachine.run {