From: Jordan Lee Date: Sun, 20 Oct 2013 17:09:46 +0000 (+0000) Subject: (trunk, web) #5500 - don't add the X-Transmission-Session-Id header if we don't have... X-Git-Tag: 2.83~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c79a5a191fe8847ac69d27e1bd885c3245372781;p=transmission (trunk, web) #5500 - don't add the X-Transmission-Session-Id header if we don't have a value for it. --- 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) {