File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ autom4te.cache/
28
28
* .tar.gz
29
29
tarballs /
30
30
test-results /
31
- Thumbs.db
31
+ Thumbs.db
32
+ * .sqlite3
32
33
33
34
# Mac bundle stuff
34
35
* .dmg
Original file line number Diff line number Diff line change @@ -66,11 +66,20 @@ public async Task<Stream> OpenAsync () {
66
66
req . Headers . Add ( "Range" , "bytes=" + deflateStart + "-" + ( deflateStart + CompressedSize - 1 ) ) ;
67
67
68
68
resp = await client . SendAsync ( req ) ;
69
- var stream = await resp . Content . ReadAsStreamAsync ( ) ;
69
+ Stream stream = await resp . Content . ReadAsStreamAsync ( ) ;
70
+ if ( Mode == 8 ) // deflate
71
+ {
72
+ stream = new DeflateStream ( stream , CompressionMode . Decompress , false ) ;
73
+ }
74
+ else {
75
+ if ( Mode != 0 ) { // store
76
+ throw new NotSupportedException ( "Compression mode " + Mode + " not supported" ) ;
77
+ }
78
+ }
70
79
71
- var ds = new DeflateStream ( stream , CompressionMode . Decompress , false ) ;
72
- ds . CopyTo ( ms ) ;
80
+ stream . CopyTo ( ms ) ;
73
81
ms . Position = 0 ;
82
+ stream . Dispose ( ) ;
74
83
return ms ;
75
84
}
76
85
}
Original file line number Diff line number Diff line change @@ -401,8 +401,10 @@ else
401
401
var cls = (active ? " active " : " " ) + " public-api" ;
402
402
<li >
403
403
<a class =" @cls"
404
- href =" /packages/@Uri.EscapeDataString(package.Id)/@Uri.EscapeDataString(package.Version.ShortVersionString)/lib/@Uri.EscapeDataString(framework.Moniker)/@Uri.EscapeDataString(a.FileName)"
405
- title =" @a.Definition.Name.Version.ToString()" >
404
+ href =" /packages/@Uri.EscapeDataString(package.Id)/@Uri.EscapeDataString(package.Version.ShortVersionString)/lib/@Uri.EscapeDataString(framework.Moniker)/@Uri.EscapeDataString(a.FileName)"
405
+ @*Rendering this title is problematic because it attempts to load the assembly*@
406
+ @*title =" @a.Definition.Name.Version.ToString()" *@
407
+ >
406
408
<span class =" glyphicon glyphicon-@GetIcon(a)" aria-hidden =" true" ></span >  ; @a.FileName
407
409
</a >
408
410
</li >
You can’t perform that action at this time.
0 commit comments