gotosocial/internal/transport
Daniele Sluijters d6f4d196c9
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.
2022-11-26 20:15:19 +00:00
..
context.go [feature/performance] Fail fast when doing remote transport calls inside incoming request contexts (#1119) 2022-11-23 21:40:07 +00:00
context_test.go [feature/performance] Fail fast when doing remote transport calls inside incoming request contexts (#1119) 2022-11-23 21:40:07 +00:00
controller.go Tweak the User-Agent a bit (#1153) 2022-11-26 20:15:19 +00:00
deliver.go [feature] More consistent API error handling (#637) 2022-06-08 20:38:03 +02:00
dereference.go [feature] Read + Write tombstones for deleted Actors (#1005) 2022-11-11 12:18:38 +01:00
derefinstance.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
derefmedia.go [feature] update config types to use bytesize.Size (#828) 2022-09-29 21:50:43 +01:00
finger.go [chore] update dependencies, bump to Go 1.19.1 (#826) 2022-09-28 18:30:40 +01:00
signing.go [security] transport.Controller{} and transport.Transport{} security and performance improvements (#564) 2022-05-15 11:16:43 +02:00
transport.go [feature/performance] Fail fast when doing remote transport calls inside incoming request contexts (#1119) 2022-11-23 21:40:07 +00:00