Skip to content

Commit be1c00e

Browse files
author
mhugent
committedNov 24, 2008

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed
 

‎src/core/qgshttptransaction.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,19 @@ bool QgsHttpTransaction::getSynchronously( QByteArray &respondedContent, int red
113113
// includes the scheme, host and port (the
114114
// http://www.address.bit:80), so remove that from the url before
115115
// executing an http GET.
116-
//
117-
// gsherman 2008-10-24 - Not sure if the above still holds true. Commenting
118-
// out the removal for testing purposes
119-
// QString pathAndQuery = httpurl.remove( 0,
120-
// httpurl.indexOf( qurl.path() ) );
116+
117+
QString pathAndQuery = httpurl.remove( 0, httpurl.indexOf( qurl.path() ) );
121118

122119

123120
if ( !postData ) //do request with HTTP GET
124121
{
125-
header.setRequest( "GET", httpurl );
122+
header.setRequest( "GET", pathAndQuery );
126123
// do GET using header containing user-agent
127124
httpid = http->request( header );
128125
}
129126
else //do request with HTTP POST
130127
{
131-
header.setRequest( "POST", httpurl );
128+
header.setRequest( "POST", pathAndQuery );
132129
// do POST using header containing user-agent
133130
httpid = http->request( header, *postData );
134131
}

0 commit comments

Comments
 (0)
Please sign in to comment.