Skip to content
Permalink
Browse files

Server WFS3: fix unreported wrong links extension

  • Loading branch information
elpaso committed Oct 13, 2020
1 parent 8d3e028 commit e4e854a6338db78c0a57f5566948319ef5dfc052
Showing with 409 additions and 204 deletions.
  1. +2 −2 src/server/qgsserverogcapihandler.cpp
  2. +407 −202 tests/src/python/test_qgsserver_api.py
@@ -149,7 +149,7 @@ std::string QgsServerOgcApiHandler::href( const QgsServerApiContext &context, co
}

// Remove any existing extension
const auto suffixLength { QFileInfo( url.path() ).completeSuffix().length() };
const auto suffixLength { QFileInfo( url.path() ).suffix().length() };
if ( suffixLength > 0 )
{
auto path {url.path()};
@@ -429,7 +429,7 @@ QgsServerOgcApi::ContentType QgsServerOgcApiHandler::contentTypeFromRequest( con
QgsServerOgcApi::ContentType result { defaultContentType() };
bool found { false };
// First file extension ...
const QString extension { QFileInfo( request->url().path() ).completeSuffix().toUpper() };
const QString extension { QFileInfo( request->url().path() ).suffix().toUpper() };
if ( ! extension.isEmpty() )
{
static QMetaEnum metaEnum { QMetaEnum::fromType<QgsServerOgcApi::ContentType>() };

0 comments on commit e4e854a

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