Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Update actor.js

Marek Trunkát8e8fe13a707c
diff --git a/src/actor.js b/src/actor.js
index 5d0377b2b..90501d091 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -85,7 +85,7 @@ const addInputOptionsOrThrow = (input, contentType, options) => {
checkParamOrThrow(options.body, 'input', 'Buffer|String');
checkParamOrThrow(options.contentType, 'contentType', 'String');
- if (options.contentType) options.contentType = addCharsetToContentType(options.contentType);
+ options.contentType = addCharsetToContentType(options.contentType);
};
/**