Skip to content

Commit 1d63955

Browse files
committed
Add space for contact information in user agent
Signed-off-by: AKP <tom@tdpain.net>
1 parent 71a6685 commit 1d63955

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## Unreleased
88

9+
## 0.3.5 - 2022-01-19
10+
### Added
11+
* Added space for contact information to user agent
12+
913
## 0.3.4 - 2022-01-19
1014
### Added
1115
* Support for `ETag` and `Last-Modified` headers in feed responses

walrss/internal/rss/processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func getUserAgent(st *state.State) string {
4242
} else if core.Version != "" {
4343
o += "/" + core.Version
4444
}
45-
o += " (https://github.com/codemicro/walrss)"
45+
o += " (" + st.Config.Platform.ContactInformation + ", https://github.com/codemicro/walrss)"
4646
ua.ua = o
4747
})
4848
return ua.ua

walrss/internal/state/state.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ type Config struct {
3434
ExternalURL string `fig:"externalURL" validate:"required"`
3535
}
3636
Platform struct {
37-
DisableRegistration bool `fig:"disableRegistration"`
38-
DisableSecureCookies bool `fig:"disableSecureCookies"`
37+
DisableRegistration bool `fig:"disableRegistration"`
38+
DisableSecureCookies bool `fig:"disableSecureCookies"`
39+
ContactInformation string `fig:"contactInformation" validate:"required"`
3940
}
4041
OIDC struct {
4142
Enable bool `fig:"enable"`

0 commit comments

Comments
 (0)