Skip to content

Commit 9cc334c

Browse files
authored
update server.js
- return the file to the way it was.
1 parent 2ed5ab7 commit 9cc334c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/support/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var http = require('http');
22

33
module.exports = function(port, mapping) {
44
var handler = function(request, response) {
5-
var mapped = mapping[request.url];
5+
var mapped = mapping[request.method + " " + request.url];
66
var body = mapped.body_raw !== undefined ? mapped.body_raw : JSON.stringify(mapped.body);
77

88
response.writeHead(mapped.status);

0 commit comments

Comments
 (0)