Skip to content

Commit 6675d1e

Browse files
authored
fix: make DescribeFeatureType request handle explicitly outputFormat = null (#617)
This is needed because Geoserver is also capable of sending a json type description which cannot be parser by geostyler.
1 parent 4628f56 commit 6675d1e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/WfsDataParser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ export class WfsDataParser implements DataParser {
139139
let desribeFeatureTypeOpts;
140140

141141
if (!requestParams.outputFormat) {
142-
requestParams.outputFormat = 'application/json';
142+
if (requestParams.outputFormat === null) {
143+
delete requestParams.outputFormat
144+
} else {
145+
requestParams.outputFormat = 'application/json';
146+
}
143147
}
144148

145149
if (requestParams.version === '1.1.0') {

0 commit comments

Comments
 (0)