diff --git a/src/editing/Snapping.js b/src/editing/Snapping.js index 57b4b577743e..5108d394571b 100644 --- a/src/editing/Snapping.js +++ b/src/editing/Snapping.js @@ -13,7 +13,7 @@ EditingSnappingService.$inject = [ ]; // The MIT License (MIT) // -// Copyright (c) 2016-2024 Camptocamp SA +// Copyright (c) 2016-2025 Camptocamp SA // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -659,9 +659,13 @@ EditingSnappingService.prototype.loadItemFeatures_ = function (item) { const featureRequest = xmlSerializer.serializeToString(featureRequestXml); const url = item.wfsConfig.url; item.requestDeferred = this.q_.defer(); + const headers = { + 'Content-Type': 'text/xml', + }; this.http_ .post(url, featureRequest, { timeout: item.requestDeferred.promise, + headers: headers, }) .then((response) => { // (1) Unset requestDeferred