Update webfingering a little, add tests (#236)

* Update webfingering a little, add tests

* fix broken tests oops
This commit is contained in:
tobi 2021-09-20 16:46:45 +02:00 committed by GitHub
commit b315eee43b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 325 additions and 74 deletions

View file

@ -9,6 +9,7 @@ func TestDefault() *Config {
LogLevel: defaults.LogLevel,
ApplicationName: defaults.ApplicationName,
Host: defaults.Host,
AccountDomain: defaults.AccountDomain,
Protocol: defaults.Protocol,
Port: defaults.Port,
TrustedProxies: defaults.TrustedProxies,
@ -204,7 +205,7 @@ func GetTestDefaults() Defaults {
ApplicationName: "gotosocial",
ConfigPath: "",
Host: "localhost:8080",
AccountDomain: "",
AccountDomain: "localhost:8080",
Protocol: "http",
Port: 8080,
TrustedProxies: []string{"127.0.0.1/32"},