Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from ZakCodes/patch-1
Browse files Browse the repository at this point in the history
Changed text/json to application/json
  • Loading branch information
ashwin31 authored Jan 4, 2019
2 parents 966ae91 + 5390fac commit 28ab63c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ http.createServer(function (req, res) {
}
dbo.close();
if(result[0]){
res.writeHead(200, {'Content-Type': 'text/json'});
res.writeHead(200, {'Content-Type': 'application/json'});
res.write(JSON.stringify(result[0]));
}else{
res.writeHead(400, {'Content-Type': 'text/json'});
res.writeHead(400, {'Content-Type': 'application/json'});
res.write(JSON.stringify({"error":"Invalid base or symbols"}))
}
res.end();
Expand Down

0 comments on commit 28ab63c

Please sign in to comment.