fix: oauth headers
This commit is contained in:
parent
ce42cc0e8d
commit
30cc0a9b18
2 changed files with 15 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ export class MastodonApiServerService {
|
|||
fastify.addContentTypeParser(['application/x-www-form-urlencoded'], { parseAs: 'string' }, (req, body, done) => {
|
||||
const dataObj: any = {};
|
||||
const parsedData = new URLSearchParams(body as string);
|
||||
for (let pair of parsedData.entries()) {
|
||||
for (const pair of parsedData.entries()) {
|
||||
dataObj[pair[0]] = pair[1];
|
||||
}
|
||||
done(null, dataObj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue