Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test for virtual host functionality

  • Loading branch information...
commit 3418b9ed0c2fb5abcc8afd9b582751bd640580a7 1 parent 3f729f0
@mhansen authored
View
1  tests/fixtures/examplevirtualhost.com/index.html
@@ -0,0 +1 @@
+This is a virtual host root
View
15 tests/test-vhost.js
@@ -0,0 +1,15 @@
+require('./common');
+
+var host = 'examplevirtualhost.com';
+
+exports['a request to the root of a vhost is routed to the right directory']=
+function(test) {
+ antinode.start(settings, function() {
+ test_http(test, {'method':'GET','pathname':'/','headers':{'host':host}},
+ {'statusCode':200, 'body':'This is a virtual host root\n'},
+ function() {
+ antinode.stop();
+ test.done();
+ });
+ });
+};

0 comments on commit 3418b9e

Please sign in to comment.
Something went wrong with that request. Please try again.