public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Search Repo:
Add failing spec for absolute URL in request.
macournoyer (author)
Thu May 15 18:38:00 -0700 2008
commit  6ac4baf44a7480a1147a764cca90ff974b866827
tree    7a6855cbf73d6c613bf0ac1a55b3b459006a948c
parent  5d0a3a0bfd9d3e9d0ea3c0f14a6873f58a6e35ce
...
173
174
175
 
 
 
 
 
 
 
 
 
 
 
 
176
177
178
...
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
0
@@ -173,6 +173,18 @@
0
     end
0
   end
0
   
0
+ xit "should parse absolute request URI" do
0
+ request = R(<<-EOS, true)
0
+GET http://localhost:3000/hi HTTP/1.1
0
+Host: localhost:3000
0
+
0
+EOS
0
+ request.env['PATH_INFO'].should == '/hi'
0
+
0
+ request.should validate_with_lint
0
+ end
0
+
0
+
0
   it "should fails on heders larger then MAX_HEADER" do
0
     proc { R("GET / HTTP/1.1\r\nFoo: #{'X' * Request::MAX_HEADER}\r\n\r\n") }.should raise_error(InvalidRequest)
0
   end

Comments

    No one has commented yet.