File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/lib/package/api_export Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ final class ExportedPackage {
264264 /// Interace for writing `/api/archives/<package>-<version>.tar.gz` .
265265 ExportedBlob tarball (String version) => ExportedBlob ._(
266266 _owner,
267- '/api/archives/$_package -$version .tar.gz' ,
267+ '/api/archives/$_package -${ Uri . encodeComponent ( version )} .tar.gz' ,
268268 '$_package -$version .tar.gz' ,
269269 'application/octet' ,
270270 Duration (hours: 2 ),
@@ -288,7 +288,7 @@ final class ExportedPackage {
288288 return ;
289289 }
290290 final version = item.name.without (prefix: pfx, suffix: '.tar.gz' );
291- if (allVersionNumbers.contains (version)) {
291+ if (allVersionNumbers.contains (Uri . decodeComponent ( version) )) {
292292 return ;
293293 }
294294 if (await _owner._bucket.tryInfo (item.name) case final info? ) {
You can’t perform that action at this time.
0 commit comments