[core] Restore existing response body

Until #2721 lands we still need this.
This commit is contained in:
John Firebaugh
2016-01-14 18:17:53 -08:00
parent e44db93f1c
commit f62d41ae05
4 changed files with 10 additions and 0 deletions

View File

@@ -532,6 +532,8 @@ void HTTPCURLRequest::handleResult(CURLcode code) {
response->notModified = true;
if (existingResponse) {
response->data = existingResponse->data;
if (response->expires == Seconds::zero()) {
response->expires = existingResponse->expires;
}