Navigation Menu

Skip to content

Commit

Permalink
Cleaned up header setRequest (no functional change)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9550 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Oct 26, 2008
1 parent 0941492 commit b733bde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgshttptransaction.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit b733bde

Please sign in to comment.