Skip to content

Commit dd313bb

Browse files
Mic92wxiaoguang
andauthored
Update routers/api/v1/repo/file.go
Co-authored-by: wxiaoguang <[email protected]>
1 parent dd2ccf4 commit dd313bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func download(ctx *context.APIContext, archiveName string, archiver *repo_model.
321321

322322
// Add nix format link header so tarballs lock correctly:
323323
// https://github.com/nixos/nix/blob/56763ff918eb308db23080e560ed2ea3e00c80a7/doc/manual/src/protocols/tarball-fetcher.md
324-
ctx.Resp.Header().Add("Link", fmt.Sprintf("<%s/archive/%s.tar.gz?rev=%s>; rel=\"immutable\"",
324+
ctx.Resp.Header().Add("Link", fmt.Sprintf(`<%s/archive/%s.tar.gz?rev=%s>; rel="immutable"`,
325325
ctx.Repo.Repository.APIURL(),
326326
archiver.CommitID, archiver.CommitID))
327327

0 commit comments

Comments
 (0)