[Cache API] Add support for overwriting responses with put on an existing record
[WebKit-https.git] / Source / WebCore / Modules / cache / CacheStorageConnection.cpp
index 67f2f6d885de8bb94e25a5717d0ce4a9d97c38b1..3157fc38f97100832d1acff457166e6f45ad2e7d 100644 (file)
@@ -180,7 +180,7 @@ static inline CacheStorageConnection::ResponseBody copyResponseBody(const CacheS
 
 CacheStorageConnection::Record CacheStorageConnection::Record::copy() const
 {
-    return Record { identifier, requestHeadersGuard, request, options, referrer, responseHeadersGuard, response, copyResponseBody(responseBody) };
+    return Record { identifier, updateResponseCounter, requestHeadersGuard, request, options, referrer, responseHeadersGuard, response, copyResponseBody(responseBody) };
 }
 
 } // namespace WebCore