Skip to content

Commit

Permalink
remove User-Agent as it is uncommon to overwrite browser info
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 29, 2023
1 parent f2c8ae6 commit e04892a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
globals: {
SOURCE_VERSION: '0.0.test',
},
moduleNameMapper: {
'@/(.*)$': '<rootDir>/src/$1',
config: '<rootDir>/config.js',
Expand Down
1 change: 0 additions & 1 deletion src/api/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export class ApiImpl implements Api {
mode: 'cors',
body: JSON.stringify(completeRequest),
headers: {
'User-Agent': `GraphHopperMaps/${SOURCE_VERSION}`,
Accept: 'application/json',
'Content-Type': 'application/json',
},
Expand Down
1 change: 0 additions & 1 deletion src/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ declare module 'react-responsive' {

// defined by webpack
declare const GIT_SHA: string
declare const SOURCE_VERSION: string
1 change: 0 additions & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ module.exports = {
}),
new webpack.DefinePlugin({
GIT_SHA: JSON.stringify(gitSHA),
SOURCE_VERSION: JSON.stringify(package.version),
}),
],

Expand Down

0 comments on commit e04892a

Please sign in to comment.