Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

fix Content-Type to same type as official repository #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/deb/s3/manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def write_to_s3
# store any packages that need to be stored
@packages_to_be_upload.each do |pkg|
yield pkg.url_filename(@codename) if block_given?
s3_store(pkg.filename, pkg.url_filename(@codename), 'application/octet-stream; charset=binary', self.cache_control, self.fail_if_exists)
s3_store(pkg.filename, pkg.url_filename(@codename), 'application/x-debian-package', self.cache_control, self.fail_if_exists)
end
end

Expand All @@ -126,7 +126,7 @@ def write_to_s3
Zlib::GzipWriter.open(gztemp.path) { |gz| gz.write manifest }
f = "dists/#{@codename}/#{@component}/binary-#{@architecture}/Packages.gz"
yield f if block_given?
s3_store(gztemp.path, f, 'application/x-gzip; charset=binary', self.cache_control)
s3_store(gztemp.path, f, 'application/x-gzip', self.cache_control)
@files["#{@component}/binary-#{@architecture}/Packages.gz"] = hashfile(gztemp.path)
gztemp.unlink

Expand Down