Skip to content

Commit 45166aa

Browse files
committedMay 16, 2017
[server] Clearer log message when parsing non-XML POST data
1 parent cbef51c commit 45166aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server/qgsrequesthandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void QgsRequestHandler::parseInput()
224224
if ( !doc.setContent( inputString, true, &errorMsg, &line, &column ) )
225225
{
226226
// XXX Output error but continue processing request ?
227-
QgsMessageLog::logMessage( QStringLiteral( "Error parsing post data: at line %1, column %2: %3." )
227+
QgsMessageLog::logMessage( QStringLiteral( "Warning: error parsing post data as XML: at line %1, column %2: %3. Assuming urlencoded query string sent in the post body." )
228228
.arg( line ).arg( column ).arg( errorMsg ) );
229229

230230
// Process input string as a simple query text

0 commit comments

Comments
 (0)
Please sign in to comment.