We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a343d commit 15d3b9fCopy full SHA for 15d3b9f
utils.ts
@@ -3,12 +3,15 @@
3
4
import { RepresentationHeader } from "./deps.ts";
5
6
+// TODO(miayuci): add strict parsing.
7
+
8
const ReNoTransform = /(?:^|,)\s*?no-transform\s*?(?:,|$)/;
9
10
export function isNoTransform(input: string): boolean {
11
return ReNoTransform.test(input);
12
}
13
14
+/** Return new `Response` if the response include `Content-Length` header and readable. */
15
export async function reCalcContentLength(
16
response: Response,
17
): Promise<Response> {
0 commit comments