mirror of https://github.com/shred/acme4j
Read rate limit documentation from links
parent
94ee501811
commit
896269ec33
|
@ -432,7 +432,7 @@ public class DefaultConnection implements Connection {
|
||||||
|
|
||||||
if ("rateLimited".equals(error)) {
|
if ("rateLimited".equals(error)) {
|
||||||
Optional<Instant> retryAfter = getRetryAfterHeader();
|
Optional<Instant> retryAfter = getRetryAfterHeader();
|
||||||
Collection<URI> rateLimits = getLinks("rate-limit");
|
Collection<URI> rateLimits = getLinks("urn:ietf:params:acme:documentation");
|
||||||
return new AcmeRateLimitExceededException(type, detail, retryAfter.orElse(null), rateLimits);
|
return new AcmeRateLimitExceededException(type, detail, retryAfter.orElse(null), rateLimits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue