use a string instead of a symbol for X-Message-Type causing an error in Passenger

This commit is contained in:
Didier Lafforgue 2012-02-07 12:19:54 +01:00
parent b4afec5fd3
commit 51a0862d89
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ module Locomotive
unless message.blank?
controller.headers['X-Message'] = message
controller.headers['X-Message-Type'] = type
controller.headers['X-Message-Type'] = type.to_s
end
yield if block_given?