diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2024-03-10 14:19:43 +0100 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2024-03-10 14:19:43 +0100 |
commit | 7e8cc22b0c6022d648df60a52a4a9496659ae16a (patch) | |
tree | 441cf0358bd22243bfe3cbcf59a51702c00517e9 /src | |
parent | f2f03eb3cc3be56abe32c064ec8d21912c4b4a47 (diff) | |
download | homer-7e8cc22b0c6022d648df60a52a4a9496659ae16a.tar.gz homer-7e8cc22b0c6022d648df60a52a4a9496659ae16a.tar.zst homer-7e8cc22b0c6022d648df60a52a4a9496659ae16a.zip |
chore: lint
Diffstat (limited to 'src')
-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`, { |