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@9550 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Oct 26, 2008
1 parent 2491a3e commit 66eb88f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgshttptransaction.cpp
Original file line number Diff line number Diff line change
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 66eb88f

Please sign in to comment.