set content type

This commit is contained in:
Konstantin Haase 2012-12-06 15:24:46 +01:00
parent cd9d84783d
commit ee1f9d899d

View File

@ -91,6 +91,7 @@ class Travis::Api::App
get '/handshake' do
handshake do |user, token, redirect_uri|
if target_ok? redirect_uri
content_type :html
data = { user: user, token: token, uri: redirect_uri }
erb(:post_payload, locals: data)
else