Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix url query
  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent ca397b2 commit daa4038
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/server/qgsserverparameters.cpp
Expand Up @@ -416,7 +416,19 @@ void QgsServerParameters::add( const QString &key, const QString &value )

QUrlQuery QgsServerParameters::urlQuery() const
{
return mUrlQuery;
QUrlQuery query = mUrlQuery;

if ( query.isEmpty() )
{
query.clear();

for ( auto param : toMap().toStdMap() )
{
query.addQueryItem( param.first, param.second );
}
}

return query;
}

void QgsServerParameters::remove( QgsServerParameter::Name name )
Expand Down

0 comments on commit daa4038

Please sign in to comment.