diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zero/response.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/zero/response.rb b/lib/zero/response.rb index 0d23194..fefa320 100644 --- a/lib/zero/response.rb +++ b/lib/zero/response.rb @@ -34,7 +34,8 @@ module Zero # TODO Remove content length and body, on certain status codes # Set content length, if not already set content_length unless header.has_key? 'Content-Length' - # TODO Set content type, if not already set + # Set content type, if not already set + content_type 'text/html' unless header.has_key? 'Content-Type' [status, header, body] end |