mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 12:18:02 +03:00
fix: registerUser request body is invalid (#4002)
I found two issues: 1. This `options` object is being passed down to fetchData, where it is deconstructed by the "data" attribute, not body. 2. the `data` object is being transformed into JSON downstream, thus the stringification done here makes for a string json object only Signed-off-by: auyer <rafael@rcpassos.me>
This commit is contained in:
parent
9989653d00
commit
17d433749c
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class ChatService {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ displayName: username }),
|
data: { displayName: username },
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await getUnauthedData(URL_CHAT_REGISTRATION, options);
|
const response = await getUnauthedData(URL_CHAT_REGISTRATION, options);
|
||||||
|
|
Loading…
Reference in a new issue