1 //go:build !integration 2 3 package wfe2 4 5 import ( 6 "context" 7 "net/http" 8 9 "github.com/letsencrypt/boulder/web" 10 ) 11 12 // Issuer returns a 404, because production Boulder does not actually serve 13 // AIA Issuer URL content. 14 func (wfe *WebFrontEndImpl) Issuer(ctx context.Context, logEvent *web.RequestEvent, response http.ResponseWriter, request *http.Request) { 15 // Use the same mechanism to return a 404 as wfe.Index does for paths other 16 // than "/", so that the result is indistinguishable. 17 logEvent.AddError("AIA Issuer URL requested") 18 http.NotFound(response, request) 19 response.Header().Set("Content-Type", "application/problem+json") 20 } 21