Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Updates to Pantheon Direct Comms (#170)
Browse files Browse the repository at this point in the history
1. Change target endpoint to `terminus.pantheon.io`
2. Add `User-Agent` to `__getAuthHeaders()` so it's used on all requests, not just POSTs
  • Loading branch information
Josh Koenig authored and pirog committed Sep 17, 2016
1 parent 7d78175 commit b019b00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Client(kbox) {
// Define the pantheon endpoint protocol/host/port
this.target = {
protocol: 'https',
hostname: 'dashboard.pantheon.io',
hostname: 'terminus.pantheon.io',
port: '443'
};

Expand Down Expand Up @@ -115,7 +115,8 @@ Client.prototype.__getTokenFromEmail = function(email) {
Client.prototype.__getAuthHeaders = function(session) {
return {
'Content-Type': 'application/json',
'Cookie': 'X-Pantheon-Session=' + session.session
'Cookie': 'X-Pantheon-Session=' + session.session,
'User-Agent': 'Terminus/Kalabox'
};
};

Expand Down

0 comments on commit b019b00

Please sign in to comment.