Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes post element in WFS GetCapabilities doc
  • Loading branch information
pblottiere committed Jul 24, 2018
1 parent 1ac5e29 commit ac9ff08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/services/wfs/qgswfsgetcapabilities.cpp
Expand Up @@ -333,9 +333,12 @@ namespace QgsWfs
QDomElement getElement = doc.createElement( QStringLiteral( "ows:Get" ) );
getElement.setAttribute( QStringLiteral( "xlink:type" ), QStringLiteral( "xlink:simple" ) );
getElement.setAttribute( QStringLiteral( "xlink:href" ), hrefString );
QDomElement postElement = getElement.cloneNode().toElement();
httpElement.appendChild( getElement );

QDomElement postElement = doc.createElement( QStringLiteral( "ows:Post" ) );
postElement.setAttribute( QStringLiteral( "xlink:href" ), hrefString );
httpElement.appendChild( postElement );

dcpElement.appendChild( httpElement );
operationElement.appendChild( dcpElement );

Expand Down

0 comments on commit ac9ff08

Please sign in to comment.