Skip to content

Commit

Permalink
Accept HttpStatusCode.OK in response to newOrder request
Browse files Browse the repository at this point in the history
That's the way Digicert does it, and not forbidden by the RFC
  • Loading branch information
WouterTinus committed Jun 8, 2020
1 parent 697d645 commit 113c137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ACMESharp/Protocol/AcmeProtocolClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public async Task<OrderDetails> CreateOrderAsync(IEnumerable<string> dnsIdentifi
new Uri(_http.BaseAddress, Directory.NewOrder),
method: HttpMethod.Post,
message: message,
expectedStatuses: new[] { HttpStatusCode.Created },
expectedStatuses: new[] { HttpStatusCode.Created, HttpStatusCode.OK },
cancel: cancel);

var order = await DecodeOrderResponseAsync(resp);
Expand Down

0 comments on commit 113c137

Please sign in to comment.