mirror of
https://github.com/google/nomulus.git
synced 2025-05-03 13:37:51 +02:00
We are seeing some web WHOIS HTTP(S) requests made to our endpoints without the Host header specified. This is an error according to the HTTP/1.1 spec. However we do not want to spam our logs with errors that are outside of our control. Do not throw and return a 400 response instead. Also re-worked the logic a bit to only return HSTS headers if we send a redirect response, not any other error responses. The tests are re-arrange to correspond with the logical flow in the code. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=207143230 |
||
---|---|---|
.. | ||
BackendMetricsHandlerTest.java | ||
EppQuotaHandlerTest.java | ||
EppServiceHandlerTest.java | ||
HealthCheckHandlerTest.java | ||
ProxyProtocolHandlerTest.java | ||
RelayHandlerTest.java | ||
SslClientInitializerTest.java | ||
SslInitializerTestUtils.java | ||
SslServerInitializerTest.java | ||
WebWhoisRedirectHandlerTest.java | ||
WhoisQuotaHandlerTest.java | ||
WhoisServiceHandlerTest.java |