Skip to content

Commit

Permalink
Add content type
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kassouf committed Sep 4, 2019
1 parent 5e19b3f commit 2f07179
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions physical/raft/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ func (b *RaftBackend) Snapshot(out *logical.HTTPResponseWriter, access seal.Acce

out.Header().Add("Content-Disposition", "attachment")
out.Header().Add("Content-Length", fmt.Sprintf("%d", size))
out.Header().Add("Content-Type", "application/gzip")
_, err = io.Copy(out, snap)
if err != nil {
return err
Expand Down

0 comments on commit 2f07179

Please sign in to comment.