mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix: Send User-Agent to office365.com as it appearently needs it since a
few weeks #4677
This commit is contained in:
parent
b800619a3c
commit
0fbb25fd10
1 changed files with 2 additions and 1 deletions
|
|
@ -118,7 +118,8 @@ export const createWindow = ({
|
|||
removeKeyInAnyCase(requestHeaders, 'accept');
|
||||
|
||||
// NOTE this is needed for GitHub api requests to work :(
|
||||
if (!details.url.includes('github.com')) {
|
||||
// office365 needs a User-Agent as well (#4677)
|
||||
if (!details.url.includes('github.com') && !details.url.includes('office365.com')) {
|
||||
removeKeyInAnyCase(requestHeaders, 'User-Agent');
|
||||
}
|
||||
callback({ requestHeaders });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue