Merge pull request #2620 from delvelabs/mark-steps-in-har

Fix HAR validation for HAR viewer
This commit is contained in:
Miroslav Stampar 2017-07-21 11:07:16 +02:00 committed by GitHub
commit a9a744fec6

View File

@ -72,7 +72,11 @@ class Entry:
"request": self.request.toDict(),
"response": self.response.toDict(),
"cache": {},
"timings": {},
"timings": {
"send": -1,
"wait": -1,
"receive": -1,
},
"time": int(1000 * (self.endTime - self.startTime)),
"startedDateTime": "%s%s" % (datetime.datetime.fromtimestamp(self.startTime).isoformat(), time.strftime("%z")) if self.startTime else None
}