Skip to content

Commit 983674d

Browse files
committed
Add comment about resolving ETag for non-429 FIDO MDS responses
1 parent 4016c5d commit 983674d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/FidoMetadataDownloader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,8 @@ private ByteArray download(URL url, Optional<String> etag) throws IOException, N
11221122
httpsConn.getResponseCode(),
11231123
url);
11241124

1125+
// As of 2026-05-05, FIDO MDS returns an ETag header even with 429 Too Many Requests status.
1126+
// We might as well use it when present, even when the status is technically a failure.
11251127
final String responseEtag = httpsConn.getHeaderField("ETag");
11261128
if (responseEtag != null) {
11271129
log.debug("Response ETag: {}", responseEtag);

0 commit comments

Comments
 (0)