<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -109,11 +109,12 @@ module ActionController  #:nodoc:
           else
             if ActionController.const_defined? &quot;Response&quot;
               new_response = ActionController::Response.new
+              ActionController::Response::DEFAULT_HEADERS.each {|k, v| new_response.headers[k] = v}
             else
               new_response = response.dup
               new_response.headers.clear
+              response.class::DEFAULT_HEADERS.each { |k, v| new_response.headers[k] = v }
             end
-            ActionController::Response::DEFAULT_HEADERS.each {|k, v| new_response.headers[k] = v}
             
             # Using a content-encoding header prevents output compression filters from messing with this response
             new_response.headers['Content-Encoding'] = &quot;identity&quot;</diff>
      <filename>lib/embedded_actions/embed_action.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>adaba3186b259cb8307e21205a77c29b50681111</id>
    </parent>
  </parents>
  <author>
    <name>roman</name>
    <email>romanandreg@gmail.com</email>
  </author>
  <url>http://github.com/sd/embedded-actions/commit/73d4c57c29fe39e9d73d2ef183d6a06cb8d6db9e</url>
  <id>73d4c57c29fe39e9d73d2ef183d6a06cb8d6db9e</id>
  <committed-date>2009-06-15T12:11:45-07:00</committed-date>
  <authored-date>2009-06-15T11:57:52-07:00</authored-date>
  <message>Removing a bug from lib/embed_action.rb file, we were getting the default headers from ActionController::Response, even in the case when the Response constant was not defined inside
the ActionController module, changed that to response.class:DEFAULT_HEADERS, this works if and only if all
the responses classes respond to the DEFAULT_HEADERS constant.

Signed-off-by: Sebastian Delmont &lt;sd@notso.net&gt;</message>
  <tree>157d6dec462e01a86915ed45fb086b97f015bc3a</tree>
  <committer>
    <name>Sebastian Delmont</name>
    <email>sd@notso.net</email>
  </committer>
</commit>
