From 823e245f5350eb6886906c5917b0b13635438468 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Fri, 15 Sep 2000 00:28:01 +0000 Subject: [PATCH] made the mime type correct git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193704 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/image/FopImageFactory.java | 2 +- src/org/apache/fop/image/analyser/SVGReader.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/image/FopImageFactory.java b/src/org/apache/fop/image/FopImageFactory.java index 61653dbb6..ef4a92c9b 100644 --- a/src/org/apache/fop/image/FopImageFactory.java +++ b/src/org/apache/fop/image/FopImageFactory.java @@ -136,7 +136,7 @@ public class FopImageFactory { imgClassName = "org.apache.fop.image.JimiImage"; } else if ("image/tiff".equals(imgMimeType)) { imgClassName = "org.apache.fop.image.JimiImage"; - } else if ("image/svg".equals(imgMimeType)) { + } else if ("image/svg-xml".equals(imgMimeType)) { imgClassName = "org.apache.fop.image.SVGImage"; } if (imgClassName == null) diff --git a/src/org/apache/fop/image/analyser/SVGReader.java b/src/org/apache/fop/image/analyser/SVGReader.java index be5d9a8aa..58fa26f9d 100644 --- a/src/org/apache/fop/image/analyser/SVGReader.java +++ b/src/org/apache/fop/image/analyser/SVGReader.java @@ -66,7 +66,7 @@ public class SVGReader extends AbstractImageReader { } public String getMimeType() { - return "image/svg"; + return "image/svg-xml"; } /** -- 2.39.5