Commit b9a0ba1e authored by Ryan Graham's avatar Ryan Graham Committed by ryang

removed empty line breaks, for some reason they cause an IllegalStateException...

removed empty line breaks, for some reason they cause an IllegalStateException to be thrown when the content type is set something other than text/html

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3086 b35dd754-fafc-0310-a699-88a17e54d16e
parent 234b838b
<%@ page import="java.io.OutputStream, <%@ page import="java.io.OutputStream,
org.jivesoftware.messenger.XMPPServer, org.jivesoftware.messenger.XMPPServer,
org.jivesoftware.messenger.plugin.ImportExportPlugin" org.jivesoftware.messenger.plugin.ImportExportPlugin"%><%
%>
<%
String fileName = request.getParameter("fileName"); String fileName = request.getParameter("fileName");
response.setContentType("application/x-download"); response.setContentType("application/x-download");
response.setHeader("Content-Disposition","attachment;filename="+fileName+".xml"); response.setHeader("Content-Disposition","attachment;filename="+fileName+".xml");
ImportExportPlugin plugin = (ImportExportPlugin) XMPPServer.getInstance().getPluginManager().getPlugin("userimportexport"); ImportExportPlugin plugin = (ImportExportPlugin) XMPPServer.getInstance().getPluginManager().getPlugin("userimportexport");
byte[] content = plugin.exportUsersToFile(); byte[] content = plugin.exportUsersToFile();
OutputStream os = response.getOutputStream(); OutputStream os = response.getOutputStream();
os.write(content); os.write(content);
os.flush(); os.flush();
os.close(); os.close();
%> %>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment