Skip to content

Commit

Permalink
fix webp rendering in server (#39803)
Browse files Browse the repository at this point in the history
* fix webp rendering in server

currently, qgis server always returns content-length=0
  • Loading branch information
mbernasocchi committed Nov 4, 2020
1 parent b335617 commit 0e758df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/services/wms/qgswmsutils.cpp
Expand Up @@ -152,6 +152,7 @@ namespace QgsWms
saveFormat = "JPEG";
break;
case WEBP:
result = img;
contentType = QStringLiteral( "image/webp" );
saveFormat = QStringLiteral( "WEBP" );
break;
Expand Down

0 comments on commit 0e758df

Please sign in to comment.