kopia lustrzana https://github.com/c9/core
unify patching project
- moved validation into the DB layer - removed old way to set visibility - moved everything into PATCH - updated UIpull/43/merge
rodzic
bdd23d065b
commit
3b638c258a
|
@ -67,7 +67,7 @@
|
|||
"c9.ide.language.javascript.tern": "#7aab8b0b6a",
|
||||
"c9.ide.language.javascript.infer": "#cfec494a3c",
|
||||
"c9.ide.language.jsonalyzer": "#c253f093a0",
|
||||
"c9.ide.collab": "#aeaa248d54",
|
||||
"c9.ide.collab": "#f0e96dd2cf",
|
||||
"c9.ide.local": "#a9703b630c",
|
||||
"c9.ide.find": "#6cc6d3379d",
|
||||
"c9.ide.find.infiles": "#72582de3cd",
|
||||
|
|
|
@ -22,7 +22,7 @@ define(function(require, exports, module) {
|
|||
|
||||
/***** Methods *****/
|
||||
|
||||
var REST_METHODS = ["get", "post", "put", "delete"];
|
||||
var REST_METHODS = ["get", "post", "put", "delete", "patch"];
|
||||
|
||||
function wrapMethod(urlPrefix, method) {
|
||||
return function(url, options, callback) {
|
||||
|
@ -33,7 +33,7 @@ define(function(require, exports, module) {
|
|||
}
|
||||
var headers = options.headers = options.headers || {};
|
||||
headers.Accept = headers.Accept || "application/json";
|
||||
options.method = method;
|
||||
options.method = method.toUpperCase();
|
||||
if (!options.timeout)
|
||||
options.timeout = 60000;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue