Last active
May 9, 2016 13:38
-
-
Save takp/0daa1266a1ed4e144c3b973208b9f9fb to your computer and use it in GitHub Desktop.
simple-oauth-header-extract.rb
This file contains 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
module SimpleOAuth | |
class Header | |
class >> self | |
... | |
def escape(value) | |
uri_parser.escape(value.to_s, /[^a-z0-9\-\.\_\~]/i) | |
end | |
alias_method :encode, :escape | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment