Skip to content
Browse files

Use the MIME subtype rather than general type

  • Loading branch information...
1 parent 742fd2a commit 4b455623b88f8d62ef5c44a8759c54cb42b10331 David Winslow committed Oct 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ows/src/main/java/org/geoserver/ows/Response.java
View
2 src/ows/src/main/java/org/geoserver/ows/Response.java
@@ -210,7 +210,7 @@ public String getAttachmentFileName(Object value, Operation operation) {
name = name + "-" + opName;
}
String[] typeParts = mimeType.split(";");
- String extension = typeParts[0].split("/")[0];
+ String extension = typeParts[0].split("/")[1];
name = name + "." + extension;
}
return name;

0 comments on commit 4b45562

Please sign in to comment.
Something went wrong with that request. Please try again.