Permalink
Browse files

netsniff example: Exclude Data URI from HAR.

Fixes issue #10740.

#10740
  • Loading branch information...
1 parent 9f9053e commit b5345bc13346224254e77021cae3e144f9577ecd @DjinnS DjinnS committed with Mar 19, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 examples/netsniff.js
View
@@ -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,

0 comments on commit b5345bc

Please sign in to comment.