We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653725e commit 5f3a817Copy full SHA for 5f3a817
actionpack/lib/action_dispatch/http/request.rb
@@ -238,9 +238,7 @@ def headers
238
# If you are using +javascript_include_tag+ or +stylesheet_link_tag+ the
239
# Early Hints headers are included by default if supported.
240
def send_early_hints(links)
241
- return unless env["rack.early_hints"]
242
-
243
- env["rack.early_hints"].call(links)
+ env["rack.early_hints"]&.call(links)
244
end
245
246
# Returns a +String+ with the last requested path including their params.
0 commit comments