Skip to content

Commit a5a88ef

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/repo.go

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

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

0 commit comments

Comments
 (0)