diff --git a/lib/watts.rb b/lib/watts.rb index 13bfa2b..ffcdb15 100644 --- a/lib/watts.rb +++ b/lib/watts.rb @@ -236,6 +236,8 @@ def self.inherited base end # TODO: Problems. + content_type=response.header['Content-Type'] || 'text/html;charset=utf8' + case resp when nil response @@ -245,7 +247,7 @@ def self.inherited base resp = resp.to_s [ 200, - {'Content-Type' => 'text/plain', + {'Content-Type' => >content_type #'text/plain', 'Content-Length' => resp.bytesize.to_s, }, [resp]