Skip to content

Commit d9f5100

Browse files
committed
fetch: fix failing test
Prior to [this](ef9966c#diff-08c935ef8c633bb630641d44230597f1cff5afb0e736d451e2ba5569fa53d915R805) commit tar was not a valid extension. After that this one is valid case.
1 parent 4f20cce commit d9f5100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Package/Fetch.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,9 +867,9 @@ const FileType = enum {
867867
try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("ATTACHMENT; filename=\"stuff.tar.xz\""));
868868
try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("attachment; FileName=\"stuff.tar.xz\""));
869869
try std.testing.expectEqual(@as(?FileType, .@"tar.gz"), fromContentDisposition("attachment; FileName*=UTF-8\'\'xyz%2Fstuff.tar.gz"));
870+
try std.testing.expectEqual(@as(?FileType, .tar), fromContentDisposition("attachment; FileName=\"stuff.tar\""));
870871

871872
try std.testing.expect(fromContentDisposition("attachment FileName=\"stuff.tar.gz\"") == null);
872-
try std.testing.expect(fromContentDisposition("attachment; FileName=\"stuff.tar\"") == null);
873873
try std.testing.expect(fromContentDisposition("attachment; FileName\"stuff.gz\"") == null);
874874
try std.testing.expect(fromContentDisposition("attachment; size=42") == null);
875875
try std.testing.expect(fromContentDisposition("inline; size=42") == null);

0 commit comments

Comments
 (0)