Skip to content

Commit

Permalink
fix: set user-agent on validator (#572)
Browse files Browse the repository at this point in the history
- Closes #571
  • Loading branch information
gadomski authored Dec 18, 2024
1 parent 2bb2f93 commit 91a84e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- `Fields` trait impl for `Link` ([#542](https://github.com/stac-utils/stac-rs/pull/542))

### Fixed

- Set user agent for validation client ([#572](https://github.com/stac-utils/stac-rs/pull/572))

## [0.11.0] - 2024-11-12

### Added
Expand Down
5 changes: 5 additions & 0 deletions crates/core/src/validate/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ impl Validator {
Client::builder()
}
};
let client_builder = client_builder.user_agent(concat!(
env!("CARGO_PKG_NAME"),
"/",
env!("CARGO_PKG_VERSION"),
));
Ok(Validator {
schemas: Arc::new(RwLock::new(schemas(&validation_options))),
validation_options,
Expand Down

0 comments on commit 91a84e2

Please sign in to comment.