Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Return the correct media type from the test server
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Allan committed May 6, 2016
1 parent bb14e75 commit 7053c88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/server.js
Expand Up @@ -4,14 +4,14 @@ var http = require('http');
var remotes = {
"folder/folderInteger.json": {
"type": "integer"
},
},
"integer.json": {
"type": "integer"
},
},
"subSchemas.json": {
"integer": {
"type": "integer"
},
},
"refToInteger": {
"$ref": "#/integer"
}
Expand All @@ -30,11 +30,11 @@ http.createServer(function (req, res) {
res.writeHead(404, {'Content-Type': 'text/plain'});
res.end('');
} else {
res.writeHead(200, {'Content-Type': 'application/json'});
res.end(JSON.stringify(data));
res.writeHead(200, {'Content-Type': 'application/schema+json'});
res.end(JSON.stringify(data));
}


}).listen(port);

console.log('Server running at http://127.0.0.1:' + port);
console.log('Server running at http://127.0.0.1:' + port);

0 comments on commit 7053c88

Please sign in to comment.