We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39065bb commit decdbc4Copy full SHA for decdbc4
1 file changed
wfe/wfe.go
@@ -272,6 +272,13 @@ func (wfe *WebFrontEndImpl) HandleFunc(
272
return
273
}
274
275
+ // Reject all requests that do not include a User-Agent, which RFC 8555
276
+ // Section 6.1 requires all clients to supply in all requests.
277
+ if len(request.UserAgent()) == 0 {
278
+ wfe.sendError(acme.MalformedProblem("All requests MUST include a User-Agent header"), response)
279
+ return
280
+ }
281
+
282
// Modern ACME only sends a Replay-Nonce in responses to GET/HEAD
283
// requests to the dedicated newNonce endpoint, or in replies to POST
284
// requests that consumed a nonce.
0 commit comments