mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Make sure non-optional properties are present
This commit is contained in:
parent
facc54f60b
commit
3c5ee552f0
|
@ -72,7 +72,11 @@ class Entry:
|
||||||
"request": self.request.toDict(),
|
"request": self.request.toDict(),
|
||||||
"response": self.response.toDict(),
|
"response": self.response.toDict(),
|
||||||
"cache": {},
|
"cache": {},
|
||||||
"timings": {},
|
"timings": {
|
||||||
|
"send": -1,
|
||||||
|
"wait": -1,
|
||||||
|
"receive": -1,
|
||||||
|
},
|
||||||
"time": int(1000 * (self.endTime - self.startTime)),
|
"time": int(1000 * (self.endTime - self.startTime)),
|
||||||
"startedDateTime": "%s%s" % (datetime.datetime.fromtimestamp(self.startTime).isoformat(), time.strftime("%z")) if self.startTime else None
|
"startedDateTime": "%s%s" % (datetime.datetime.fromtimestamp(self.startTime).isoformat(), time.strftime("%z")) if self.startTime else None
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user