Permalink
Browse files

override application/x-httpd-eruby. thanks, Tatsuki Sugiura.

  • Loading branch information...
1 parent a889e99 commit d1f13a73bb389ff926b24ab8d4930c31578a5a29 shugo committed Apr 4, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/apache/eruby-run.rb
@@ -124,7 +124,8 @@ def postrun(r)
elsif r.sync_output or r.sync_header
# Do nothing: header has already been sent
else
- unless r.content_type
+ if !r.content_type ||
+ r.content_type.to_s == "application/x-httpd-eruby"
r.content_type = format("text/html; charset=%s", ERuby.charset)
end
r.send_http_header

0 comments on commit d1f13a7

Please sign in to comment.