Skip to content

Instantly share code, notes, and snippets.

@frohoff
Created August 12, 2013 21:04
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 frohoff/6215245 to your computer and use it in GitHub Desktop.
Save frohoff/6215245 to your computer and use it in GitHub Desktop.
proxy do |data|
{ :remote =>
data =~ /(GET|POST|HEAD|PUT|DELETE|OPTIONS|TRACE|CONNECT|PATCH) / ?
"localhost:81" :
"localhost:4444"
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment