Skip to content

Instantly share code, notes, and snippets.

@takp
Last active May 9, 2016 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takp/fec8ebc934526fc831405e596fa17471 to your computer and use it in GitHub Desktop.
Save takp/fec8ebc934526fc831405e596fa17471 to your computer and use it in GitHub Desktop.
module SimpleOAuth
class Header
class >> self
def escape(value)
return value if value == 'filter[post_status]'
uri_parser.escape(value.to_s, /[^a-z0-9\-\.\_\~]/i)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment