Skip to content

Commit

Permalink
restores clobbered response-code
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Innis committed Nov 5, 2011
1 parent 3190453 commit c4e30df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remotipart/render_overrides.rb
Expand Up @@ -7,7 +7,7 @@ module RenderOverrides
def render *args
super
if remotipart_submitted?
response.body = %{<textarea data-type=\"#{content_type}\">#{escape_once(response.body)}</textarea>}
response.body = %{<textarea data-type=\"#{content_type}\" response-code=\"#{response.response_code}\">#{escape_once(response.body)}</textarea>}
response.content_type = Mime::HTML
end
response_body
Expand Down

0 comments on commit c4e30df

Please sign in to comment.