Skip to content

Commit

Permalink
chore(app): correct header check
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed May 28, 2023
1 parent 4c92b98 commit 4c503a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/service-way/service-way.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class ServiceWayComponent implements OnDestroy, OnInit {
this.uploadxService.ajax
.request({ method: 'OPTIONS', url: this.options.endpoint as string })
.then(({ headers }) => {
if (hasher.isSupported && headers['tus-checksum-algorithm'].includes('sha1')) {
if (hasher.isSupported && headers['tus-checksum-algorithm']?.includes('sha1')) {
this.uploadxService.options.prerequest = injectTusChecksumHeader;
}
}, console.error);
Expand Down

0 comments on commit 4c503a4

Please sign in to comment.