Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add failing spec for absolute URL in request.
  • Loading branch information
macournoyer committed May 16, 2008
1 parent 5d0a3a0 commit 6ac4baf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/request/parser_spec.rb
Expand Up @@ -173,6 +173,18 @@
end
end

xit "should parse absolute request URI" do
request = R(<<-EOS, true)
GET http://localhost:3000/hi HTTP/1.1
Host: localhost:3000
EOS
request.env['PATH_INFO'].should == '/hi'

request.should validate_with_lint
end


it "should fails on heders larger then MAX_HEADER" do
proc { R("GET / HTTP/1.1\r\nFoo: #{'X' * Request::MAX_HEADER}\r\n\r\n") }.should raise_error(InvalidRequest)
end
Expand Down

0 comments on commit 6ac4baf

Please sign in to comment.