Skip to content

Commit

Permalink
add Tus-Metadata in response header when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
peifan-tes committed Oct 16, 2020
1 parent 615f834 commit fff3ebc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/handler/unrouted_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ func (handler *UnroutedHandler) finishUploadIfComplete(ctx context.Context, uplo

rw.Header().Set("Tus-Finished", "true")
rw.Header().Set("Tus-Filesize", fmt.Sprintf("%d", info.Size))
rw.Header().Set("Tus-Metadata", SerializeMetadataHeader(info.MetaData))

// ... send the info out to the channel
if handler.config.NotifyCompleteUploads {
Expand Down

0 comments on commit fff3ebc

Please sign in to comment.