File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -326,12 +326,12 @@ module HTTP
326
326
end
327
327
328
328
it " gets request host from the headers" do
329
- request = Request .from_io(MemoryIO .new(" GET / HTTP/1.1\r\n Host: host.example.org:3000\r\n Referer:\r\n\r\n " )).as(Request )
329
+ request = Request .from_io(IO :: Memory .new(" GET / HTTP/1.1\r\n Host: host.example.org:3000\r\n Referer:\r\n\r\n " )).as(Request )
330
330
request.host.should eq(" host.example.org" )
331
331
end
332
332
333
333
it " gets request host with port from the headers" do
334
- request = Request .from_io(MemoryIO .new(" GET / HTTP/1.1\r\n Host: host.example.org:3000\r\n Referer:\r\n\r\n " )).as(Request )
334
+ request = Request .from_io(IO :: Memory .new(" GET / HTTP/1.1\r\n Host: host.example.org:3000\r\n Referer:\r\n\r\n " )).as(Request )
335
335
request.host_with_port.should eq(" host.example.org:3000" )
336
336
end
337
337
end
You can’t perform that action at this time.
0 commit comments