You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/12/04 02:13:59 UTC

DO NOT REPLY [Bug 48337] Batik sends invalid accept header when requesting images

https://issues.apache.org/bugzilla/show_bug.cgi?id=48337

--- Comment #1 from daveray@gmail.com 2009-12-03 17:13:58 UTC ---
FWIW, the bug appears to be in SVGImageElementBridge.openStream() (line 409 on
the trunk):

   List mimeTypes = new ArrayList
            (ImageTagRegistry.getRegistry().getRegisteredMimeTypes());
   mimeTypes.add(MimeTypeConstants.MIME_TYPES_SVG);

Note that MIME_TYPES_SVG is an *array* of strings which is added directly to
the end of the list of mimeTypes. This explains the
"[Ljava.lang.String;@f429d7;" that I'm seeing in the Accept header.

I think the fix is simply to replace the add with:

   mimeTypes.addAll(Arrays.asList(MimeTypeConstants.MIME_TYPES_SVG));

Dave

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org