Skip to content

Commit

Permalink
fix: fetching metadata from ipfs.io gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Jan 6, 2025
1 parent 788a20c commit de251ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ changes.
### Fixed

- Fix CIP-129 DRep view identifier for script based DReps [Issue 2583](https://github.com/IntersectMBO/govtool/issues/2583)
- Fix fetching metadata from IPFS gateway

### Changed

Expand Down
2 changes: 2 additions & 0 deletions govtool/metadata-validation/src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export class AppService {
this.httpService
.get(url, {
headers: {
// Required to not being blocked by APIs that require a User-Agent
'User-Agent': 'GovTool/Metadata-Validation-Tool',
'Content-Type': 'application/json',
...(isIPFS &&
process.env.IPFS_PROJECT_ID && {
Expand Down

0 comments on commit de251ee

Please sign in to comment.