#2 HarLog toString method output invalid HAR file

v1.0 (example)
closed
nobody
HarLib (2)
5
2014-09-25
2012-12-20
Jack Bruno
No

There seems to be a bug in outputting a HarLog object to a string. After successfully loading a valid HAR file into a HarLog object using the toString method outputs an invalid HAR. This is seen using 1.0.1 and 1.1.

Example

HarFileReader reader = new HarFileReader();
HarLog log = reader.readHarFile(new File("path/to/file"));
System.out.print(log.toString());

See attached HAR file generated by Chrome for the Google home page.

Discussion

  • Emmanuel Cecchet

    I think this has been fixed in 1.1.1

     
  • Emmanuel Cecchet

    • status: open --> closed
    • Group: --> v1.0 (example)
     

Log in to post a comment.