add useragent header to commands contacting APIs
This commit is contained in:
parent
aa2d1a99f6
commit
460fccd543
9 changed files with 29 additions and 8 deletions
|
@ -27,7 +27,7 @@ module.exports = class {
|
|||
fetch('https://gamecp.apex.to/api/client/servers/1fc76afa-9a4d-497b-983a-a898795ab5b5/power', {
|
||||
method: 'post',
|
||||
body: JSON.stringify({ 'signal': 'restart' }),
|
||||
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${client.config.server}` }
|
||||
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${client.config.server}`, 'User-Agent': client.config.userAgent }
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue