From 8c9830618bd8412159de72156fcf0429a8a85a0a Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Tue, 19 May 2015 16:30:33 -0700 Subject: [PATCH 1/2] Use absolute URL for link to issuer cert --- wfe/web-front-end.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wfe/web-front-end.go b/wfe/web-front-end.go index 5b4d39ce6..4b4023997 100644 --- a/wfe/web-front-end.go +++ b/wfe/web-front-end.go @@ -466,7 +466,7 @@ func (wfe *WebFrontEndImpl) NewCertificate(response http.ResponseWriter, request // TODO The spec says a client should send an Accept: application/pkix-cert // header; either explicitly insist or tolerate response.Header().Add("Location", certURL) - response.Header().Add("Link", link(wfe.IssuerPath, "up")) + response.Header().Add("Link", link(wfe.BaseURL + wfe.IssuerPath, "up")) response.Header().Set("Content-Type", "application/pkix-cert") response.WriteHeader(http.StatusCreated) if _, err = response.Write(cert.DER); err != nil { From 48cdd350267733756a4c7151e729516090fc5116 Mon Sep 17 00:00:00 2001 From: "J.C. Jones" Date: Tue, 19 May 2015 18:25:02 -0700 Subject: [PATCH 2/2] gofmt wfe --- wfe/web-front-end.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wfe/web-front-end.go b/wfe/web-front-end.go index 4b4023997..19ec27b71 100644 --- a/wfe/web-front-end.go +++ b/wfe/web-front-end.go @@ -466,7 +466,7 @@ func (wfe *WebFrontEndImpl) NewCertificate(response http.ResponseWriter, request // TODO The spec says a client should send an Accept: application/pkix-cert // header; either explicitly insist or tolerate response.Header().Add("Location", certURL) - response.Header().Add("Link", link(wfe.BaseURL + wfe.IssuerPath, "up")) + response.Header().Add("Link", link(wfe.BaseURL+wfe.IssuerPath, "up")) response.Header().Set("Content-Type", "application/pkix-cert") response.WriteHeader(http.StatusCreated) if _, err = response.Write(cert.DER); err != nil {