1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-11 04:46:09 +03:00

netsniff example: Exclude Data URI from HAR.

Fixes issue #10740.

https://github.com/ariya/phantomjs/issues/10740
This commit is contained in:
DjinnS 2013-03-19 21:51:54 +01:00 committed by Ariya Hidayat
parent 9f9053ec44
commit b5345bc133

View File

@ -25,6 +25,12 @@ function createHAR(address, title, startTime, resources)
return;
}
// Exclude Data URI from HAR file because
// they aren't included in specification
if (request.url.match(/(^data:image\/.*)/i)) {
return;
}
entries.push({
startedDateTime: request.time.toISOString(),
time: endReply.time - request.time,