Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

restores clobbered response-code

  • Loading branch information...
commit c4e30df880d56a35aced20c6cc7c95ac97c83707 1 parent 3190453
@coreyti coreyti authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/remotipart/render_overrides.rb
View
2  lib/remotipart/render_overrides.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.