Permalink
Browse files

allow either 'verb' or 'method' in req object.

  • Loading branch information...
Robert Newson
Robert Newson committed Jan 13, 2010
1 parent abb8917 commit ddfd64d0c78617ffc8c7f36ab1abb5fb20962a5b
Showing with 2 additions and 1 deletion.
  1. +2 −1 couchdb-external-hook.py
View
@@ -78,7 +78,8 @@ def respond(res, req, key):
if h.lower() in ["accept", "if-none-match"]:
req_headers[h] = req["headers"][h]
- res.request(req["method"], path, headers=req_headers)
+ method = req["method"] if "method" in req else req["verb"]
+ res.request(method, path, headers=req_headers)
resp = res.getresponse()
resp_headers = {}

0 comments on commit ddfd64d

Please sign in to comment.