From 085e4bb5866ba95bd5d01b4bda14ec0617c2ce42 Mon Sep 17 00:00:00 2001 From: Jonathan Curran Date: Thu, 24 May 2018 10:06:23 -0600 Subject: [PATCH] Address PR comments --- rsconnect/rsconnect.py | 2 +- rsconnect/static/connect.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rsconnect/rsconnect.py b/rsconnect/rsconnect.py index 5708ce2b..62a2b08e 100644 --- a/rsconnect/rsconnect.py +++ b/rsconnect/rsconnect.py @@ -43,7 +43,7 @@ def verify_server(server_address): conn = http.HTTPConnection(r.hostname, port=(r.port or http.HTTP_PORT), timeout=10) else: conn = http.HTTPSConnection(r.hostname, port=(r.port or http.HTTPS_PORT), timeout=10) - conn.request('GET', '/__api__/server_settings') # , None, {'Authorization': 'Key %s' % api_key}) + conn.request('GET', '/__api__/server_settings') response = conn.getresponse() if response.status >= 400: return False diff --git a/rsconnect/static/connect.js b/rsconnect/static/connect.js index 67a8ae2f..2fe26371 100644 --- a/rsconnect/static/connect.js +++ b/rsconnect/static/connect.js @@ -92,7 +92,7 @@ define([ // notebook is writable result.resolve(); }) - ["catch"](function(e) { + .catch(function(e) { debug.error(e); // notebook is read-only (server details will likely not be persisted) result.resolve();