Skip to content
Permalink
Browse files
Cleaned up header setRequest (no functional change)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9550 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Oct 26, 2008
1 parent 2491a3e commit 66eb88f3dbd6e06c4824255f60dae052b28b4df6
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/qgshttptransaction.cpp
@@ -116,19 +116,19 @@ bool QgsHttpTransaction::getSynchronously( QByteArray &respondedContent, int red
//
// gsherman 2008-10-24 - Not sure if the above still holds true. Commenting
// out the removal for testing purposes
QString pathAndQuery = httpurl;//.remove( 0,
// httpurl.indexOf( qurl.path() ) );
// QString pathAndQuery = httpurl.remove( 0,
// httpurl.indexOf( qurl.path() ) );


if ( !postData ) //do request with HTTP GET
{
header.setRequest("GET", pathAndQuery);
header.setRequest("GET", httpurl);
// do GET using header containing user-agent
httpid = http->request(header);
}
else //do request with HTTP POST
{
header.setRequest("POST", pathAndQuery);
header.setRequest("POST", httpurl);
// do POST using header containing user-agent
httpid = http->request(header, *postData);
}

0 comments on commit 66eb88f

Please sign in to comment.