HandleZeroSSLHTTPValidation is to ZeroSSL API HTTP validation requests like HandleHTTPChallenge is to ACME HTTP challenge requests.
(w http.ResponseWriter, r *http.Request)
| 232 | // HandleZeroSSLHTTPValidation is to ZeroSSL API HTTP validation requests like HandleHTTPChallenge |
| 233 | // is to ACME HTTP challenge requests. |
| 234 | func (iss *ZeroSSLIssuer) HandleZeroSSLHTTPValidation(w http.ResponseWriter, r *http.Request) bool { |
| 235 | if iss == nil { |
| 236 | return false |
| 237 | } |
| 238 | if !LooksLikeZeroSSLHTTPValidation(r) { |
| 239 | return false |
| 240 | } |
| 241 | return iss.distributedHTTPValidationAnswer(w, r) |
| 242 | } |
| 243 | |
| 244 | func (iss *ZeroSSLIssuer) distributedHTTPValidationAnswer(w http.ResponseWriter, r *http.Request) bool { |
| 245 | if iss == nil { |
no test coverage detected