Swift download: only call setHeader if defined
Merge pull request #20 from gierschv/fix-swift-pipe

Swift download: only call setHeader if defined