Skip to content

Commit

Permalink
Add a fallback to unmanaged parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and rldhont committed Apr 16, 2019
1 parent d673c6f commit d2b0e15
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/server/qgsserverparameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,14 @@ QString QgsServerParameters::request() const

QString QgsServerParameters::value( const QString &key ) const
{
return value( QgsServerParameter::name( key ) ).toString();
if ( ! mParameters.contains( QgsServerParameter::name( key ) ) )
{
return mUnmanagedParameters[key];
}
else
{
return value( QgsServerParameter::name( key ) ).toString();
}
}

QVariant QgsServerParameters::value( QgsServerParameter::Name name ) const
Expand Down

0 comments on commit d2b0e15

Please sign in to comment.