Skip to content

Commit

Permalink
The name request is reserved for the rack request.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Dec 9, 2017
1 parent 3b6cf6d commit 5bea3ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.rb
Expand Up @@ -667,11 +667,11 @@
# For whatever reason, the accessVideoPublic endpoint doesn't require a session_id
response = Periscope.get("/accessVideoPublic", query: { broadcast_id: id })
raise(PeriscopeError, response) if !response.success?
request = HTTP.get(response.json["broadcast"]["image_url"])
response = HTTP.get(response.json["broadcast"]["image_url"])
status response.code
cache_control :public, :max_age => 31556926 # cache a long time
content_type request.headers["content-type"].join(", ")
request.body
content_type response.headers["content-type"].join(", ")
response.body
end

get "/soundcloud" do
Expand Down

0 comments on commit 5bea3ce

Please sign in to comment.