aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTai Dickerson <tdickers@akamai.com>2016-06-14 12:47:10 -0400
committerTai Dickerson <tdickers@akamai.com>2016-06-14 12:47:10 -0400
commitc2d0910e593faf34bae37f5c9b5cfaae509bdf8c (patch)
tree55e9a880081f6b129917d6d9d45be21b4bf1225e /test
parenta63817f2b8539cab0b645e0eda772daeaf898ed3 (diff)
downloadmitmproxy-c2d0910e593faf34bae37f5c9b5cfaae509bdf8c.tar.gz
mitmproxy-c2d0910e593faf34bae37f5c9b5cfaae509bdf8c.tar.bz2
mitmproxy-c2d0910e593faf34bae37f5c9b5cfaae509bdf8c.zip
Make har_extractor.py output HAR 1.2 spec-compliant
HAR files were failing to load in harviewer (http://www.softwareishard.com/har/viewer/) due to: - ISO 8601 dates for startedDateTime missing timezone (http://www.softwareishard.com/blog/har-12-spec/#pages) -- Used UTC but could add detection of default system timezone if desired - pages object missing pageTimings (http://www.softwareishard.com/blog/har-12-spec/#pageTimings) -- Used {} because all child fields are optional
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/data/har_extractor.har7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/mitmproxy/data/har_extractor.har b/test/mitmproxy/data/har_extractor.har
index 6b5e2994..d80dc55f 100644
--- a/test/mitmproxy/data/har_extractor.har
+++ b/test/mitmproxy/data/har_extractor.har
@@ -10,15 +10,16 @@
},
"pages": [
{
- "startedDateTime": "1993-08-24T14:41:12",
+ "startedDateTime": "1993-08-24T14:41:12+00:00",
"id": "autopage_1",
- "title": "http://address:22/path"
+ "title": "http://address:22/path",
+ "pageTimings": {}
}
],
"entries": [
{
"pageref": "autopage_1",
- "startedDateTime": "1993-08-24T14:41:12",
+ "startedDateTime": "1993-08-24T14:41:12+00:00",
"cache": {},
"request": {
"cookies": [],