callumlocke/json-formatter

Doesn't work with chunked encoding?

Opened this issue · 1 comments

The extension doesn't seem to activate for the following headers:

Connection:keep-alive
Content-Type:application/json
Date:Fri, 30 Sep 2016 09:10:28 GMT
Transfer-Encoding:chunked
X-Powered-By:Express

The body is:

{"Format":"JPEG (Joint Photographic Experts Group JFIF format)","format":"JPEG","Geometry":"1280x724","size":{"width":1280,"height":724},"Class":"DirectClass","Type":"true color","Depth":"8 bits-per-pixel component","depth":8,"Channel Depths":{"Red":"8 bits","Green":"8 bits","Blue":"8 bits"},"Channel Statistics":{"Red":{"Minimum":"0.00 (0.0000)","Maximum":"65535.00 (1.0000)","Mean":"20337.34 (0.3103)","Standard Deviation":"18639.32 (0.2844)"},"Green":{"Minimum":"0.00 (0.0000)","Maximum":"64507.00 (0.9843)","Mean":"15661.68 (0.2390)","Standard Deviation":"14517.03 (0.2215)"},"Blue":{"Minimum":"0.00 (0.0000)","Maximum":"63479.00 (0.9686)","Mean":"11773.90 (0.1797)","Standard Deviation":"14227.18 (0.2171)"}},"Filesize":"63.3Ki","Interlace":"No","Orientation":"Unknown","Background Color":"white","Border Color":"#DFDFDF","Matte Color":"#BDBDBD","Page geometry":"1280x724+0+0","Compose":"Over","Dispose":"Undefined","Iterations":"0","Compression":"JPEG","JPEG-Quality":"94","JPEG-Colorspace":"2","JPEG-Colorspace-Name":"RGB","JPEG-Sampling-factors":"2x2,1x1,1x1","Signature":"ff6d98be704c41002a5628af947dad3cb7d69e994bceef247d629c9e70aaf694","Profile-EXIF":{"Software":"Picasa","Exif Offset":"46","Exif Version":"0220","Color Space":"1","Exif Image Width":"1280","Exif Image Length":"724","Interoperability Offset":"158","Image UniqueID":"c725e82aeb6f2c360000000000000000"},"Profile-XMP":"259 bytes","Tainted":"False","User Time":"0.010u","path":"unknown.jpg"}

Any idea why?

@olalonde, it's hard to tell without an example URL. However this may be fixed in my fork as I made some changes to how JSON was detected: https://github.com/nikrolls/json-formatter