Skip to content

Commit

Permalink
Invoke headers function for tus remote uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Jul 20, 2023
1 parent 3dbaaf5 commit 9a88e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/tus/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export default class Tus extends UploaderPlugin {
uploadUrl: opts.uploadUrl,
protocol: 'tus',
size: file.data.size,
headers: opts.headers,
headers: (typeof opts.headers === 'function') ? opts.headers() : opts.headers,
metadata: file.meta,
}, options)
return res.token
Expand Down

0 comments on commit 9a88e10

Please sign in to comment.