🎨 Fixed server params names in TestSite output

This commit is contained in:
Maxim Lebedev 2023-12-09 12:26:50 +06:00
parent f73500580a
commit 50f6c7fabe
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 3 additions and 3 deletions

View File

@ -49,15 +49,15 @@ func TestSite(tb testing.TB) *Site {
Resources: make([]*Resource, 0),
Params: map[string]any{
"server": map[string]any{
"header": []any{map[string]any{
"headers": []any{map[string]any{
"path": "/**",
"headers": map[string]any{
"values": map[string]any{
"Link": `<https://auth.example.com/>; rel="indieauth-metadata", ` +
`<https://pub.example.com/>; rel="micropub"`,
},
}, map[string]any{
"path": "/foo/bar",
"headers": map[string]any{
"values": map[string]any{
"X-Testing": `sample-text`,
},
}},