-
Notifications
You must be signed in to change notification settings - Fork 162
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
Conversation
❌ Tests for the commit 49a9d0a have failed. See details: |
@testcafe-build-bot \retest |
❌ Tests for the commit 49a9d0a have failed. See details: |
✅ Tests for the commit a9f185c have passed. See details: |
src/request-pipeline/index.js
Outdated
@@ -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(''); |
There was a problem hiding this comment.
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.
❌ Tests for the commit f7351b1 have failed. See details: |
…ader does not load` (close DevExpress#1602)
@testcafe-build-bot retest |
…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
No description provided.