Skip to content

Commit 1101c5e

Browse files
committed
fix: fetching metadata from ipfs.io gateway
1 parent 3fd1c7e commit 1101c5e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ changes.
1717
### Fixed
1818

1919
- Fix CIP-129 DRep view identifier for script based DReps [Issue 2583](https://github.com/IntersectMBO/govtool/issues/2583)
20+
- Fix fetching metadata from IPFS gateway
2021
- Fix bad request on passing the random sorting to GA list request [Issue 2535](https://github.com/IntersectMBO/govtool/issues/2535)
2122
- Fix wrong drep activity conditions
2223

govtool/metadata-validation/src/app.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export class AppService {
3232
this.httpService
3333
.get(url, {
3434
headers: {
35+
// Required to not being blocked by APIs that require a User-Agent
36+
'User-Agent': 'GovTool/Metadata-Validation-Tool',
3537
'Content-Type': 'application/json',
3638
...(isIPFS &&
3739
process.env.IPFS_PROJECT_ID && {

0 commit comments

Comments
 (0)