Lauro Caetano
b1b9a0aeca
Typos. return -> returns. [ci skip]
2013-12-03 13:31:36 -02:00
Attila Domokos
95ade557a4
Removing ActiveSupport::Concern, it's not needed
2013-09-13 14:08:24 -05:00
Yves Senn
b8c2f3c769
charset should not be appended for head
responses
...
1) Failure:
test_head_created_with_image_png_content_type(RenderTest) [test/controller/render_test.rb:1238]:
Expected: "image/png"
Actual: "image/png; charset=utf-8"
2012-12-31 16:08:36 +01:00
AvnerCohen
62f273b650
Multiple changes to 1,9 hash syntax
2012-10-27 22:05:27 +02:00
Armand du Plessis
c62abed8ca
Collapsed dual checks (one for content headers and one for content) into a single check.
...
Rails includes a single character body to a head(:no_content) response to work around an old Safari bug where headers were ignored if no body sent.
This patch brings the behavior slightly closer to spec if :no_content/204 is explicity requested via a head only response.
Status comparison done on symbolic and numeric values
Not returning any content when responding with head and limited to a status code that explicitly states no content will be returned - 100..199, 204, 205, 304.
2012-08-02 16:01:08 -07:00
Kunal Shah
3ca28dec0f
If content_type is explicitly passed to the :head method use the value or fallback
2012-05-08 03:11:17 -04:00
twinturbo
8edd21c66f
Remove content-length as well
2012-05-03 17:24:05 -07:00
twinturbo
8eedd1a4a7
Make ActionController#head pass rack-link
2012-05-03 16:18:51 -07:00
Alexey Vakhov
419d4c09df
Add ActionController#head example
2011-10-11 12:31:27 +04:00
wycats
8cb2cfbf71
Fix a few bugs when trying to use Head standalone
2010-10-10 00:54:11 -07:00
Maxim Chernyak
20685d07ab
Fix header capitalization by explicitly upcasing first letter of every word, and avoiding capitalize. [ #5636 state:resolved]
2010-09-18 20:49:51 +02:00
Carlhuda
dae109a463
Including UrlFor in Redirecting and Head will warn usefully if a controller is wired up without a router included (and still support redirect_to "omg")
2010-02-26 15:56:17 -08:00
Carlhuda
226dfc2681
WIP: Remove the global router
2010-02-25 17:53:00 -08:00
José Valim
f564f947d9
Remove duplicated url_for code and move methods shared between ActionMailer and ActionController up to AbstractController.
2010-01-07 15:31:50 +01:00
Yehuda Katz
17f66473bc
AC::Head now doesn't have an unfulfilled Rendering dependency, and instead works just fine standalone (which means that ConditionalGet also doesn't have a Rendering dependency)
2009-12-20 18:50:54 -08:00
Yehuda Katz
d7499f8ee8
Extract #head into its own module and simplify it
2009-10-26 17:13:43 -07:00