From d662c0843d2bc2a8f9dd35539c8edc5e67ebc46f Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Wed, 21 May 2025 16:21:54 -0700 Subject: [PATCH] Include Location: header in GET Order responses (#8202) This causes the GET Order polling response to match the NewOrder and FinalizeOrder responses. Fixes https://github.com/letsencrypt/boulder/issues/8197 --- wfe2/wfe.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wfe2/wfe.go b/wfe2/wfe.go index 1eb088972..462866a1d 100644 --- a/wfe2/wfe.go +++ b/wfe2/wfe.go @@ -2479,6 +2479,10 @@ func (wfe *WebFrontEndImpl) GetOrder(ctx context.Context, logEvent *web.RequestE response.Header().Set(headerRetryAfter, strconv.Itoa(orderRetryAfter)) } + orderURL := web.RelativeEndpoint(request, + fmt.Sprintf("%s%d/%d", orderPath, acctID, order.Id)) + response.Header().Set("Location", orderURL) + err = wfe.writeJsonResponse(response, logEvent, http.StatusOK, respObj) if err != nil { wfe.sendError(response, logEvent, probs.ServerInternal("Error marshaling order"), err)