mirror of
https://github.com/google/nomulus.git
synced 2025-05-02 21:17:50 +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 |
||
---|---|---|
.. | ||
handler | ||
metric | ||
quota | ||
testdata | ||
BUILD | ||
CertificateModuleTest.java | ||
EppProtocolModuleTest.java | ||
GcpJsonFormatterTest.java | ||
HealthCheckProtocolModuleTest.java | ||
HttpsRelayProtocolModuleTest.java | ||
ProtocolModuleTest.java | ||
ProxyModuleTest.java | ||
TestUtils.java | ||
WebWhoisProtocolsModuleTest.java | ||
WhoisProtocolModuleTest.java |