instance method
handle_no_content!
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
handle_no_content!()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 587
def handle_no_content!
if NO_CONTENT_CODES.include?(@status)
@headers.delete CONTENT_TYPE
@headers.delete "Content-Length"
end
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 587
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response