camptocamp / cgxp

22 stars 22 forks source link

Correct Content-Type when saving features #1048

Closed pvalsecc closed 8 years ago

pvalsecc commented 8 years ago

The Editing plugin was sending the JSON with an XML Content-Type. Closes #1042.

I was planning to fix OpenLayers instead. Because the protocol could use the format to know what content type it should use, but the format is protocol agnostic and therefore doesn't know a thing about the Content-Type which is HTTP specific. So I've fixed it on CGXP instead.

sbrunner commented 8 years ago

Thanks, merge when Travis is happy :-)