Permalink
Browse files

Test for malformed URI

  • Loading branch information...
guybedford committed Feb 1, 2013
1 parent 0282706 commit efcf0eb0ed841ecbac6d6014517fdb05411308ac
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/integration/node-static-test.js
@@ -78,6 +78,15 @@ suite.addBatch({
assert.equal(response.statusCode, 404);
}
}
+}).addBatch({
+ 'requesting a malformed URI': {
+ topic: function(){
+ request.get(TEST_SERVER + '/a%AFc', this.callback);
+ }
+ 'should respond with 404': function(error, response, body){
+ assert.equal(response.statusCode, 404);
+ }
+ }
}).addBatch({
'serving hello.txt': {
topic : function(){

0 comments on commit efcf0eb

Please sign in to comment.