Skip to content

Commit

Permalink
Fix problem with missing custom headers in request
Browse files Browse the repository at this point in the history
  • Loading branch information
m3t8d1tr committed Sep 16, 2022
1 parent 59011f8 commit d121656
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/TUSKit/TUSAPI.swift
Expand Up @@ -104,6 +104,11 @@ final class TUSAPI {
if let mimeType = metaData.mimeType, !mimeType.isEmpty {
metaDataDict["filetype"] = mimeType
}

if let context = metaData.context {
metaDataDict = metaDataDict.merging(context) { _, new in new }
}

return metaDataDict
}

Expand Down

0 comments on commit d121656

Please sign in to comment.