Skip to content

Commit

Permalink
100 continue case.. grr IIS:
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Feb 17, 2011
1 parent 1841d69 commit 2512106
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/external_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2512106

Please sign in to comment.