(trunk, web) #5500 - don't add the X-Transmission-Session-Id header if we don't have a value for it.

This commit is contained in:
Jordan Lee 2013-10-20 17:09:46 +00:00
parent 78662f6532
commit c79a5a191f
1 changed files with 3 additions and 1 deletions

View File

@ -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) {