summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorPiotr Janik2011-07-04 08:07:33 (EDT)
committer Szymon Brandys2011-07-04 08:07:33 (EDT)
commite57e6b15ce03ea003370757f61eb3eca9813bc72 (patch)
tree0d96d25096f3178eedc642792e1c8b2aedae5a88
parent48676d7c1db32fa97b0d7e2fca5296a5ca845dba (diff)
downloadorg.eclipse.orion.client-e57e6b15ce03ea003370757f61eb3eca9813bc72.zip
org.eclipse.orion.client-e57e6b15ce03ea003370757f61eb3eca9813bc72.tar.gz
org.eclipse.orion.client-e57e6b15ce03ea003370757f61eb3eca9813bc72.tar.bz2
bug 350424 - [client] wrong request for file savev20110705-0200
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350424
-rw-r--r--bundles/org.eclipse.orion.client.core/web/plugins/filePlugin/fileImpl.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.core/web/plugins/filePlugin/fileImpl.js b/bundles/org.eclipse.orion.client.core/web/plugins/filePlugin/fileImpl.js
index 9ef3f21..6c699e2 100644
--- a/bundles/org.eclipse.orion.client.core/web/plugins/filePlugin/fileImpl.js
+++ b/bundles/org.eclipse.orion.client.core/web/plugins/filePlugin/fileImpl.js
@@ -316,10 +316,11 @@ eclipse.FileServiceImpl= (function() {
var xhrArgs = {
url: location,
timeout: 5000,
+ headers: { "Orion-Version": "1" },
putData: contents
};
//some different header for putting metadata
- if (typeof contents === "string") {
+ if (typeof contents !== "string") {
xhrArgs.url = location + "?parts=meta";
xhrArgs.handleAs = "json";
}