mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Send Content-Type in ActivityPub request
This commit is contained in:
parent
c2cceb16c1
commit
4f90dfb3d4
@ -19,6 +19,9 @@ export default (user: ILocalUser, url: string, object: any) => new Promise((reso
|
|||||||
port,
|
port,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: pathname + search,
|
path: pathname + search,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/activity+json'
|
||||||
|
}
|
||||||
}, res => {
|
}, res => {
|
||||||
log(`${url} --> ${res.statusCode}`);
|
log(`${url} --> ${res.statusCode}`);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user