Project

General

Profile

« Previous | Next » 

Revision 2273

Added by sgarg over 19 years ago

removed errors being generated in handling of qformat when action=insert. If qformat is not specified, xml is assumed as default.

View differences:

MetaCatServlet.java
1254 1254

  
1255 1255
            } else {
1256 1256
                // this is metadata doc
1257
                if (qformat.equals("xml")) {
1258

  
1257
                if (qformat.equals("xml") || qformat.equals("")) {
1258
                    // if equals "", that means no qformat is specified. hence
1259
                    // by default the document should be returned in xml format
1259 1260
                    // set content type first
1260 1261
                    response.setContentType("text/xml"); //MIME type
1261 1262
                    PrintWriter out = response.getWriter();

Also available in: Unified diff