Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Resource with the 304 status code and the 'content-length: x' header does not load (close #1602) #1638

Merged
merged 3 commits into from
Jun 13, 2018

Conversation

LavrovArtem
Copy link
Contributor

No description provided.

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 49a9d0a have failed. See details:

@LavrovArtem
Copy link
Contributor Author

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 49a9d0a have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit a9f185c have passed. See details:

@@ -96,7 +96,11 @@ const stages = {
ctx.onResponseEventDataWithoutBody.push({ rule, opts: configureResponseEvent.opts });
});

ctx.destRes.pipe(ctx.res);
if (ctx.contentInfo.isNotModified)
ctx.res.end('');
Copy link
Contributor

@miherlosev miherlosev Jun 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we simplify this to ctx.res.end();

I guess we need do same for requests with processed content too.

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit f7351b1 have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 50cd697 have failed. See details.

@miherlosev
Copy link
Contributor

@testcafe-build-bot retest

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 50cd697 have passed. See details.

@miherlosev miherlosev merged commit 738aa10 into DevExpress:master Jun 13, 2018
@LavrovArtem LavrovArtem deleted the i1602 branch June 13, 2018 15:00
AndreyBelym pushed a commit to AndreyBelym/testcafe-hammerhead that referenced this pull request Feb 28, 2019
…ader does not load` (close DevExpress#1602) (DevExpress#1638)

* fix `Resource with the 304 status code and the 'content-length: x' header does not load` (close DevExpress#1602)

* fix tests

* fix review issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants