diff options
author | Silenio Quarti <Silenio_Quarti@ca.ibm.com> | 2015-06-19 10:28:40 -0400 |
---|---|---|
committer | Silenio Quarti <Silenio_Quarti@ca.ibm.com> | 2015-06-19 10:53:44 -0400 |
commit | c2c642e53ff730c5fbeb16664c4613cede2c4faa (patch) | |
tree | 77861bc7e1fd5b260c76682a204eaf05f568504a | |
parent | 2d5e118bac1ff287b52d72e9dd0d45ed2214c686 (diff) | |
download | org.eclipse.orion.client-origin/stable_20150615.zip org.eclipse.orion.client-origin/stable_20150615.tar.gz org.eclipse.orion.client-origin/stable_20150615.tar.bz2 |
Bug 422210 - Wrong content type header provided on diff saves (encoding problem)R9_0origin/stable_20150615
-rw-r--r-- | bundles/org.eclipse.orion.client.ui/web/plugins/filePlugin/fileImpl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/plugins/filePlugin/fileImpl.js b/bundles/org.eclipse.orion.client.ui/web/plugins/filePlugin/fileImpl.js index 3a7b177..edede6b 100644 --- a/bundles/org.eclipse.orion.client.ui/web/plugins/filePlugin/fileImpl.js +++ b/bundles/org.eclipse.orion.client.ui/web/plugins/filePlugin/fileImpl.js @@ -546,7 +546,7 @@ define(["orion/Deferred", "orion/xhr", "orion/URL-shim", "orion/operation", "ori } else if (contents.diff) { method = "POST"; headerData["X-HTTP-Method-Override"] = "PATCH"; - headerData["Content-Type"] = "application/json"; + headerData["Content-Type"] = "application/json;charset=UTF-8"; options.data = JSON.stringify(options.data); } else { // assume we are putting metadata |