Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.432 kB
require 'faraday'
module Twitter
module Request
class Phoenix < Faraday::Middleware
def call(env)
# Not sure what what the X-Phx (Phoenix?) header is for but it's
# required to access certain undocumented resources
# e.g. GET urls/resolve
env[:request_headers]['X-Phx'] = 'true'
@app.call(env)
end
def initialize(app)
@app = app
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.