Content-Type header should be case-insensitive.

This commit is contained in:
Shaun Amott 2011-07-29 21:27:44 +00:00
parent 1a5d974bc9
commit 86e3e13767
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=37484

View file

@ -24,7 +24,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: www/en/cgi/GnatsPR/Section/MIME.pm,v 1.1 2011/07/20 22:23:23 shaun Exp $
# $FreeBSD: www/en/cgi/GnatsPR/Section/MIME.pm,v 1.2 2011/07/23 02:42:59 shaun Exp $
#------------------------------------------------------------------------------
package GnatsPR::Section::MIME;
@ -300,6 +300,11 @@ sub ParseHeader
$self->{headers}->{$key} =~ s/;.*$//;
}
# Normalise
$self->{headers}->{'content-type'} =
lc $self->{headers}->{'content-type'};
}