spacedentist / spr

Submit pull requests for individual, amendable, rebaseable commits to GitHub
https://getcord.github.io/spr/
MIT License
391 stars 41 forks source link

Construct User-Agent header with current spr version number #34

Closed sven-of-cord closed 2 years ago

sven-of-cord commented 2 years ago

env! evaluates environment variables at compile time, and cargo set CARGO_PKG_VERSION to the current version number, as defined in Cargo.toml.

Test Plan: printed out the headers object (by temporarily adding println!("HEADER: {:?}", headers);), and checked the User-Agent header has correct version number