| ... | @@ -867,9 +867,9 @@ const FileType = enum { | ... | @@ -867,9 +867,9 @@ const FileType = enum { |
| 867 | try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("ATTACHMENT; filename=\"stuff.tar.xz\"")); | 867 | try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("ATTACHMENT; filename=\"stuff.tar.xz\"")); |
| 868 | try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("attachment; FileName=\"stuff.tar.xz\"")); | 868 | try std.testing.expectEqual(@as(?FileType, .@"tar.xz"), fromContentDisposition("attachment; FileName=\"stuff.tar.xz\"")); |
| 869 | try std.testing.expectEqual(@as(?FileType, .@"tar.gz"), fromContentDisposition("attachment; FileName*=UTF-8\'\'xyz%2Fstuff.tar.gz")); | 869 | 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\"")); |
| 870 | | 871 | |
| 871 | try std.testing.expect(fromContentDisposition("attachment FileName=\"stuff.tar.gz\"") == null); | 872 | try std.testing.expect(fromContentDisposition("attachment FileName=\"stuff.tar.gz\"") == null); |
| 872 | try std.testing.expect(fromContentDisposition("attachment; FileName=\"stuff.tar\"") == null); | | |
| 873 | try std.testing.expect(fromContentDisposition("attachment; FileName\"stuff.gz\"") == null); | 873 | try std.testing.expect(fromContentDisposition("attachment; FileName\"stuff.gz\"") == null); |
| 874 | try std.testing.expect(fromContentDisposition("attachment; size=42") == null); | 874 | try std.testing.expect(fromContentDisposition("attachment; size=42") == null); |
| 875 | try std.testing.expect(fromContentDisposition("inline; size=42") == null); | 875 | try std.testing.expect(fromContentDisposition("inline; size=42") == null); |