Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-person committed Jun 25, 2022
1 parent edbfc26 commit df621eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v1.2.3

- fix memory usage issues when downloading huge files
- fix iframing cross-origin proxy

## v1.2.2

- add disk cache option for processed JS files. fixes huge server memory usage and enables workers to share the same cache
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rammerhead",
"version": "1.2.2",
"version": "1.2.3",
"description": "User friendly web proxy powered by testcafe-hammerhead",
"main": "src/index.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/util/patchAsyncResourceProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ function getResourceUrlReplacer(ctx) {
require('testcafe-hammerhead/lib/processing/resources/index').process = async function process(ctx) {
const { destResBody, contentInfo } = ctx;
const { encoding, charset } = contentInfo;

for (const processor of RESOURCE_PROCESSORS) {
if (!processor.shouldProcessResource(ctx)) continue;

const urlReplacer = getResourceUrlReplacer(ctx);

if (pageProcessor === processor) await ctx.prepareInjectableUserScripts();

const decoded = await decodeContent(destResBody, encoding, charset);

// @ts-ignore: Cannot invoke an expression whose type lacks a call signature
Expand Down

0 comments on commit df621eb

Please sign in to comment.