Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Fix #12090
Browse files Browse the repository at this point in the history
  • Loading branch information
pixiuPL committed Jan 8, 2018
2 parents 1696e04 + bad3237 commit ca5a6c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/networkaccessmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,11 @@ void NetworkAccessManager::handleStarted(QNetworkReply* reply, int requestId)
data["headers"] = headers;
data["requestHeaders"] = requestHeaders;
data["time"] = QDateTime::currentDateTime();
<<<<<<< HEAD
data["body"] = "";
=======
data["fromCache"] = reply->attribute(QNetworkRequest::SourceIsFromCacheAttribute).toBool();
>>>>>>> f1f3cd7b5aa0815028f4a18a65a1a7b76c41ade0

QWebFrame *frame = qobject_cast<QWebFrame *>(reply->request().originatingObject());
data["frameName"] = frame->frameName();
Expand Down Expand Up @@ -519,9 +523,6 @@ void NetworkAccessManager::handleFinished(QNetworkReply* reply, int requestId, i
data["redirectURL"] = reply->header(QNetworkRequest::LocationHeader);
data["headers"] = headers;
data["time"] = QDateTime::currentDateTime();
data["body"] = body;
data["bodySize"] = bodySize;

emit resourceReceived(data);
}

Expand Down

0 comments on commit ca5a6c3

Please sign in to comment.