mirror of
https://github.com/transmission/transmission.git
synced 2026-04-28 12:44:15 +01:00
(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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user