Describe the bug
In my implementation of the HttpRequest interface, the setHeader(header, value) method is being called with a number as the second parameter. This disrupts the logic of Angular's HttpClient, which I've used as the request handler.
To Reproduce
Implement HtttpRequest with Angular's HtttpClient,
also implement HttpStack and initialise it using the instance from step 1
Instance from step 2 to should be passed to tus.Upload constructor as httpStack option
Try now uploading a file with tus.Upload instance
File upload will fail with TypeError: Spread syntax requires ...iterable[Symbol.iterator] to be a.....
Error is thrown by Angular's http.mjs script because it can not process number value
Expected behavior
Function call of HttpRequest.setHeader should receive string as second argument as per defintion of method in interface.
Describe the bug In my implementation of the HttpRequest interface, the setHeader(header, value) method is being called with a number as the second parameter. This disrupts the logic of Angular's HttpClient, which I've used as the request handler.
To Reproduce
Expected behavior Function call of HttpRequest.setHeader should receive string as second argument as per defintion of method in interface.
Setup details