google-nomulus/javatests/google/registry/proxy/handler
jianglai 8664101687 Make web WHOIS more resilient to malformed requests
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
2018-08-10 13:46:48 -04:00
..
BackendMetricsHandlerTest.java Fix proxy metrics instrumentation bug 2018-05-30 12:18:54 -04:00
EppQuotaHandlerTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
EppServiceHandlerTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
HealthCheckHandlerTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
ProxyProtocolHandlerTest.java Make some minor changes to logging messages and test names. 2018-08-10 13:44:25 -04:00
RelayHandlerTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
SslClientInitializerTest.java Temporarily disable channel alive assertions in SSL fai... 2018-02-20 15:52:47 -05:00
SslInitializerTestUtils.java Make SSL failure test more robust 2018-02-20 15:59:06 -05:00
SslServerInitializerTest.java Cache server certificates for up to 30 min 2018-08-10 13:46:48 -04:00
WebWhoisRedirectHandlerTest.java Make web WHOIS more resilient to malformed requests 2018-08-10 13:46:48 -04:00
WhoisQuotaHandlerTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
WhoisServiceHandlerTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00