diff options
author | 2022-11-26 21:15:19 +0100 | |
---|---|---|
committer | 2022-11-26 20:15:19 +0000 | |
commit | d6f4d196c978d81041ea99a32e2d6f63b0639472 (patch) | |
tree | 375c63d8dd8ede7a4b61e62141ec9f0f51721515 /vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go | |
parent | Additional IP range validations (#1152) (diff) | |
download | gotosocial-d6f4d196c978d81041ea99a32e2d6f63b0639472.tar.xz |
Tweak the User-Agent a bit (#1153)
* [bugfix] Use AccountDomain for user agent
By using the account domain we can pinpoint the source of the request
more accurately when looking at the User-Agent header.
* [chore] Align user-agent header with spec
Based on RFC 7231, our User-Agent header doesn't quite match. It seems
to always want Name [/ Version] pairs, with comments in parenthesis and
multiple comments separated by a semicolon.
Align our UA with that, using application name first by itself in case
someone has customised it with the source instance in a comment. Follow
that up with gotosocial/<version> and a comment pointing at the source
code.
This also drops the mention of gofed/activity since a fork is in use.
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go')
0 files changed, 0 insertions, 0 deletions