Created
July 9, 2014 16:07
-
-
Save 1v/702381c4440cdb8af85a to your computer and use it in GitHub Desktop.
Ruby: Iterate thru all headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.request.headers.each do |header| | |
next if !header[1].is_a?(String) | |
@@debug["#{header[0]}"] = header[1] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment