mirror of
https://github.com/transmission/transmission
synced 2025-03-03 10:15:45 +00: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:
parent
78662f6532
commit
c79a5a191f
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue