Skip to content

Commit

Permalink
Accept X-Content-Length as fallback too
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Dec 6, 2024
1 parent 92be245 commit f861f5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ export class Reader {
* @param
*/
constructor(req) {
debugger;

Check failure on line 29 in scripts/reader.js

View workflow job for this annotation

GitHub Actions / Run linters

Unexpected 'debugger' statement
this.#availableBytes = new Uint8Array(
req.headers?.get('Content-Length') || 1024
req.headers?.get('Content-Length') ||
req.headers?.get('X-Content-Length') ||
1024
);
const stream = req.body.getReader();
(async () => {
Expand Down

0 comments on commit f861f5e

Please sign in to comment.