From c79a5a191fe8847ac69d27e1bd885c3245372781 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 20 Oct 2013 17:09:46 +0000 Subject: [PATCH] (trunk, web) #5500 - don't add the X-Transmission-Session-Id header if we don't have a value for it. --- web/javascript/remote.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/javascript/remote.js b/web/javascript/remote.js index af6ef7d42..dfd7e749f 100644 --- a/web/javascript/remote.js +++ b/web/javascript/remote.js @@ -69,7 +69,9 @@ TransmissionRemote.prototype = }, appendSessionId: function(XHR) { - XHR.setRequestHeader('X-Transmission-Session-Id', this._token); + if (this._token) { + XHR.setRequestHeader('X-Transmission-Session-Id', this._token); + } }, sendRequest: function(data, callback, context, async) { -- 2.40.0