Skip to content

Commit

Permalink
correcting URL resolution
Browse files Browse the repository at this point in the history
Fixes #12 when the base URL does not reflect a root path.
  • Loading branch information
ebekker authored Feb 1, 2019
1 parent aabd827 commit b323fff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ACMESharp/Protocol/Resources/ServiceDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ public class ServiceDirectory
[JsonExtensionData]
private IDictionary<string, object> _extra;

public string Directory { get; set; } = "/directory";
public string Directory { get; set; } = "directory";

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string NewNonce { get; set; } //! = "/acme/new-nonce";
public string NewNonce { get; set; } //! = "acme/new-nonce";

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string NewAccount { get; set; } //! = "/acme/new-acct";
public string NewAccount { get; set; } //! = "acme/new-acct";

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string NewOrder { get; set; } //! = "/acme/new-order";
public string NewOrder { get; set; } //! = "acme/new-order";


/// <summary>
Expand All @@ -26,13 +26,13 @@ public class ServiceDirectory
/// https://tools.ietf.org/html/draft-ietf-acme-acme-12#section-7.4.1
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string NewAuthz { get; set; } //! = "/acme/new-authz";
public string NewAuthz { get; set; } //! = "acme/new-authz";

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string RevokeCert { get; set; } //! = "/acme/revoke-cert";
public string RevokeCert { get; set; } //! = "acme/revoke-cert";

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string KeyChange { get; set; } //! = "/acme/key-change";
public string KeyChange { get; set; } //! = "acme/key-change";

public DirectoryMeta Meta { get; set; }

Expand Down Expand Up @@ -62,4 +62,4 @@ public class DirectoryMeta
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string ExternalAccountRequired { get; set; }
}
}
}

0 comments on commit b323fff

Please sign in to comment.