summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Attachment.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm
index 3678424c9..df1a11fcc 100644
--- a/Bugzilla/Attachment.pm
+++ b/Bugzilla/Attachment.pm
@@ -546,6 +546,7 @@ sub _check_content_type {
}
my $mimetype = mimetype($fh);
+ $fh->seek(0, 0);
$content_type = $mimetype if $mimetype;
}