From 168f5b1cd70c211776f735a0f63c8c5c87105441 Mon Sep 17 00:00:00 2001 From: Agis Anastasopoulos Date: Thu, 15 Nov 2012 14:08:09 +0200 Subject: Add a note for the example in Setting Custom Headers --- guides/source/action_controller_overview.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides') diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md index 947baee385..9a8441d5a2 100644 --- a/guides/source/action_controller_overview.md +++ b/guides/source/action_controller_overview.md @@ -616,6 +616,8 @@ If you want to set custom headers for a response then `response.headers` is the response.headers["Content-Type"] = "application/pdf" ``` +Note: in the above case it would make more sense to use the `content_type` setter directly. + HTTP Authentications -------------------- -- cgit v1.2.3