Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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