mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
encode uri component for authorization header
This commit is contained in:
parent
73c6ddd116
commit
49cbef729b
1 changed files with 3 additions and 3 deletions
|
|
@ -102,9 +102,9 @@ const authenticate = async (
|
||||||
Username: body.username,
|
Username: body.username,
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
'x-emby-authorization': `MediaBrowser Client="Feishin", Device="${getHostname()}", DeviceId="Feishin-${getHostname()}-${
|
'x-emby-authorization': `MediaBrowser Client="Feishin", Device="${getHostname()}", DeviceId="Feishin-${getHostname()}-${encodeURIComponent(
|
||||||
body.username
|
body.username,
|
||||||
}", Version="${packageJson.version}"`,
|
)}", Version="${packageJson.version}"`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue