Another attempt at #29550, which was reverted. Fallback is not happening if cert provisioning fails _despite_ having the correct header. But with the changes in this PR, since we'll listen on `:80`, fallback _will_ happen when cert provisioning fails due to incorrect domain configuration. We're also adding [Hurl](https://hurl.dev) based tests. They're not run in any CI yet. That'll come in soon.
42 lines
863 B
Plaintext
42 lines
863 B
Plaintext
GET http://localhost
|
|
HTTP 200
|
|
Content-Type: text/html; charset=utf-8
|
|
[Asserts]
|
|
header "Server" not exists
|
|
body == "index.html body"
|
|
|
|
GET http://127.0.0.1
|
|
HTTP 200
|
|
Content-Type: text/html; charset=utf-8
|
|
[Asserts]
|
|
header "Server" not exists
|
|
body == "index.html body"
|
|
|
|
GET http://local.com
|
|
HTTP 200
|
|
Content-Type: text/html; charset=utf-8
|
|
[Asserts]
|
|
header "Server" not exists
|
|
body == "index.html body"
|
|
|
|
GET http://localhost/some/non/handled/path
|
|
HTTP 200
|
|
Content-Type: text/html; charset=utf-8
|
|
[Asserts]
|
|
header "Server" not exists
|
|
body == "index.html body"
|
|
|
|
GET http://127.0.0.1/some/non/handled/path
|
|
HTTP 200
|
|
Content-Type: text/html; charset=utf-8
|
|
[Asserts]
|
|
header "Server" not exists
|
|
body == "index.html body"
|
|
|
|
GET http://local.com/some/non/handled/path
|
|
HTTP 200
|
|
Content-Type: text/html; charset=utf-8
|
|
[Asserts]
|
|
header "Server" not exists
|
|
body == "index.html body"
|