Browse Source

correct comment about result.type

jomo 10 years ago
parent
commit
0b687d8f8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/response.js

+ 1 - 1
lib/response.js

@@ -19,7 +19,7 @@ var human_status = {
 //  * status:   see human_status, required
 //  * redirect: redirect URL
 //  * body:     file or message, required unless redirect is present or status is < 0
-//  * type:     a valid Content-Type, required if body is present
+//  * type:     a valid Content-Type for the body, defaults to "text/plain"
 //  * hash:     image hash, required when body is an image
 //  * err:      a possible Error
 module.exports = function(request, response, result) {