Skip to content

Commit

Permalink
Merge pull request #34 from pvorb/patch-content-type
Browse files Browse the repository at this point in the history
Add 'Content-Type' header in response (fixes #32)
  • Loading branch information
indexzero committed Jun 22, 2013
2 parents ae5ea65 + f762825 commit 445b799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/restful.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ function _extendWithNonStrictRoutes(router, resource, options, respond) {
//
function respondWithResult(req, res, status, key, value) {
var result;
res.writeHead(status);
res.writeHead(status, { 'Content-Type': 'application/json' });

if (arguments.length === 5) {
result = {};
Expand Down

0 comments on commit 445b799

Please sign in to comment.