Skip to content
Permalink
Browse files

Fix url query

  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent ca397b2 commit daa40387ebf7f3c389613bbb538ad5e44c2ac2a9
Showing with 13 additions and 1 deletion.
  1. +13 −1 src/server/qgsserverparameters.cpp
@@ -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 )

0 comments on commit daa4038

Please sign in to comment.
You can’t perform that action at this time.