Skip to content

Commit

Permalink
Add space for contact information in user agent
Browse files Browse the repository at this point in the history
Signed-off-by: AKP <[email protected]>
  • Loading branch information
codemicro committed Jan 19, 2023
1 parent 71a6685 commit 1d63955
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

## 0.3.5 - 2022-01-19
### Added
* Added space for contact information to user agent

## 0.3.4 - 2022-01-19
### Added
* Support for `ETag` and `Last-Modified` headers in feed responses
Expand Down
2 changes: 1 addition & 1 deletion walrss/internal/rss/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func getUserAgent(st *state.State) string {
} else if core.Version != "" {
o += "/" + core.Version
}
o += " (https://github.com/codemicro/walrss)"
o += " (" + st.Config.Platform.ContactInformation + ", https://github.com/codemicro/walrss)"
ua.ua = o
})
return ua.ua
Expand Down
5 changes: 3 additions & 2 deletions walrss/internal/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ type Config struct {
ExternalURL string `fig:"externalURL" validate:"required"`
}
Platform struct {
DisableRegistration bool `fig:"disableRegistration"`
DisableSecureCookies bool `fig:"disableSecureCookies"`
DisableRegistration bool `fig:"disableRegistration"`
DisableSecureCookies bool `fig:"disableSecureCookies"`
ContactInformation string `fig:"contactInformation" validate:"required"`
}
OIDC struct {
Enable bool `fig:"enable"`
Expand Down

0 comments on commit 1d63955

Please sign in to comment.