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:
parent
9f9053ec44
commit
b5345bc133
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user