Merge pull request #213 from letsencrypt/issuer-cert-absolute

Use absolute URL for link to issuer cert
This commit is contained in:
James 'J.C.' Jones 2015-05-19 18:39:41 -07:00
commit a9a50d9f15
1 changed files with 1 additions and 1 deletions

View File

@ -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 {