private Method

Headers.normalize_header(header_name)

Takes an HTTP header name and returns it in the format

Source Code

# File action_controller/headers.rb, line 26
def normalize_header(header_name)
  "HTTP_#{header_name.upcase.gsub(/-/, '_')}"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.