diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/services/Rtorrent.vue | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/services/Rtorrent.vue b/src/components/services/Rtorrent.vue index 59dd843..337b8cb 100644 --- a/src/components/services/Rtorrent.vue +++ b/src/components/services/Rtorrent.vue | |||
@@ -125,9 +125,8 @@ export default { | |||
125 | const headers = { "Content-Type": "text/xml" }; | 125 | const headers = { "Content-Type": "text/xml" }; |
126 | 126 | ||
127 | if (this.item.username && this.item.password) { | 127 | if (this.item.username && this.item.password) { |
128 | headers[ | 128 | headers["Authorization"] = |
129 | "Authorization" | 129 | `${this.item.username}:${this.item.password}`; |
130 | ] = `${this.item.username}:${this.item.password}`; | ||
131 | } | 130 | } |
132 | 131 | ||
133 | return fetch(`${this.item.xmlrpc.replace(/\/$/, "")}/RPC2`, { | 132 | return fetch(`${this.item.xmlrpc.replace(/\/$/, "")}/RPC2`, { |