Skip to content

Commit

Permalink
fix: user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsepi committed Apr 27, 2024
1 parent 836a333 commit 26e0b11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/datasource/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export class SourceClient {
public constructor () {
this.client = axios.create({
baseURL: 'https://www.vattenfall.fi',
timeout: 10000
timeout: 10000,
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36'
}
});
}

Expand Down

0 comments on commit 26e0b11

Please sign in to comment.