mirror of https://github.com/shred/acme4j
Remove pebble workaround for uri field
parent
3d82e09eb3
commit
f852cdaecd
|
@ -26,7 +26,6 @@ import org.shredzone.acme4j.connector.Connection;
|
||||||
import org.shredzone.acme4j.exception.AcmeException;
|
import org.shredzone.acme4j.exception.AcmeException;
|
||||||
import org.shredzone.acme4j.exception.AcmeProtocolException;
|
import org.shredzone.acme4j.exception.AcmeProtocolException;
|
||||||
import org.shredzone.acme4j.exception.AcmeRetryAfterException;
|
import org.shredzone.acme4j.exception.AcmeRetryAfterException;
|
||||||
import org.shredzone.acme4j.provider.pebble.Pebble;
|
|
||||||
import org.shredzone.acme4j.util.JSON;
|
import org.shredzone.acme4j.util.JSON;
|
||||||
import org.shredzone.acme4j.util.JSONBuilder;
|
import org.shredzone.acme4j.util.JSONBuilder;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
@ -103,14 +102,8 @@ public class Challenge extends AcmeResource {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public URL getLocation() {
|
public URL getLocation() {
|
||||||
// TODO PEBBLE: uses "uri" instead of "url"
|
|
||||||
// https://github.com/letsencrypt/pebble/pull/25
|
|
||||||
if (Pebble.workaround()) {
|
|
||||||
return data.get("uri").asURL();
|
|
||||||
} else {
|
|
||||||
return data.get(KEY_URL).asURL();
|
return data.get(KEY_URL).asURL();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current status of the challenge.
|
* Returns the current status of the challenge.
|
||||||
|
|
Loading…
Reference in New Issue