From: <tho...@us...> - 2013-12-19 14:58:42
|
Revision: 7681 http://bigdata.svn.sourceforge.net/bigdata/?rev=7681&view=rev Author: thompsonbry Date: 2013-12-19 14:58:34 +0000 (Thu, 19 Dec 2013) Log Message: ----------- Added a check for no Content-Type header to avoid an NPE. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/InsertServlet.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/InsertServlet.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/InsertServlet.java 2013-12-18 21:47:44 UTC (rev 7680) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/InsertServlet.java 2013-12-19 14:58:34 UTC (rev 7681) @@ -140,7 +140,7 @@ final String namespace = getNamespace(req); final String contentType = req.getContentType(); - + if(contentType==null) buildResponse(resp, HTTP_BADREQUEST, MIME_TEXT_PLAIN, "Content-Type not specified."); if (log.isInfoEnabled()) log.info("Request body: " + contentType); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |