diff options
author | Jan Lehnardt <jan@apache.org> | 2009-12-23 00:55:35 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-12-23 00:55:35 +0000 |
commit | 6bd4afc34d12f96b3872e6b0bc028ad7f01b579c (patch) | |
tree | bb7fef7b034373dbe570755b2f5921861e7fdd83 /share/server | |
parent | fe98014a2345b504ea4bd876fd102c6738ed6bb5 (diff) |
Follow RFC 2616 closer and use "verb" instead of "method"
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/server')
-rw-r--r-- | share/server/render.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/server/render.js b/share/server/render.js index e19f31c4..45782d76 100644 --- a/share/server/render.js +++ b/share/server/render.js @@ -233,9 +233,9 @@ var Render = (function() { function runUpdate(fun, ddoc, args) { try { - var verb = args[1].verb; + var method = args[1].method; // for analytics logging applications you might want to remove the next line - if (verb == "GET") throw(["error","method_not_allowed","Update functions do not allow GET"]); + if (method == "GET") throw(["error","method_not_allowed","Update functions do not allow GET"]); var result = fun.apply(ddoc, args); var doc = result[0]; var resp = result[1]; |