Skip to content

Commit

Permalink
fixed issue where tar can also be sent as application/content-stream …
Browse files Browse the repository at this point in the history
…content-type
  • Loading branch information
ChrisMcKenzie committed Nov 5, 2015
1 parent c701162 commit d522713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packaging/root/usr/share/dropship/init/dropship.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ chdir /var/lib/dropship
console log

script
/usr/local/bin/dropship agent --config=/etc/dropship.d/dropship.hcl
sudo -u root /usr/local/bin/dropship agent --config=/etc/dropship.d/dropship.hcl
end script
2 changes: 1 addition & 1 deletion service/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func executeCommand(c string) (string, error) {

func getInstaller(contentType string) (installer.Installer, error) {
switch contentType {
case "application/x-gzip":
case "application/x-gzip", "application/octet-stream":
var installer installer.TarInstaller
return installer, nil
}
Expand Down

0 comments on commit d522713

Please sign in to comment.