feat: masquerade string mode

This commit is contained in:
Toby
2023-10-11 14:53:46 -07:00
parent 4ebc765f43
commit 197e913dce
3 changed files with 46 additions and 6 deletions

View File

@@ -136,6 +136,14 @@ func TestServerConfig(t *testing.T) {
URL: "https://some.site.net",
RewriteHost: true,
},
String: serverConfigMasqueradeString{
Content: "aint nothin here",
Headers: map[string]string{
"content-type": "text/plain",
"custom-haha": "lol",
},
StatusCode: 418,
},
ListenHTTP: ":80",
ListenHTTPS: ":443",
ForceHTTPS: true,