Skip to content

Missing content-length header #388

@barjin

Description

@barjin

Responses acquired through the Node.JS bindings are missing the content-length response header

import { Impit } from 'impit';

const client = new Impit();

const impitResponse = await client.fetch('https://crawlee.dev');
console.log(impitResponse.headers.get('content-length'));
// prints null

const nativeResponse = await fetch('https://crawlee.dev');
console.log(nativeResponse.headers.get('content-length'));
// prints a number > 10000

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions