File tree 1 file changed +5
-1
lines changed
src/ts/waterfall/details-overlay
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ function parseResponseDetails(harEntry: Entry): KvTuple[] {
85
85
} ;
86
86
87
87
const contentLength = getHeader ( headers , "Content-Length" ) ;
88
+ let contentSize = undefined ;
89
+ if ( content . size !== - 1 && contentLength !== content . size . toString ( ) ) {
90
+ contentSize = content . size ;
91
+ }
88
92
89
93
let contentType = getHeader ( headers , "Content-Type" ) ;
90
94
if ( harEntry . _contentType && harEntry . _contentType !== contentType ) {
@@ -104,7 +108,7 @@ function parseResponseDetails(harEntry: Entry): KvTuple[] {
104
108
dateHeader ( "Last-Modified" ) ,
105
109
stringHeader ( "Pragma" ) ,
106
110
byteSizeProperty ( "Content-Length" , contentLength ) ,
107
- [ "Content Size" , ( contentLength !== content . size . toString ( ) ? formatBytes ( content . size ) : undefined ) ] ,
111
+ byteSizeProperty ( "Content Size" , contentSize ) ,
108
112
byteSizeProperty ( "Content Compression" , content . compression ) ,
109
113
stringHeader ( "Connection" ) ,
110
114
stringHeader ( "ETag" ) ,
You can’t perform that action at this time.
0 commit comments