projects
/
ipypbx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64936f7
)
Match POST data, not headers
author
Stas Shtin
<antisvin@gmail.com>
Thu, 15 Apr 2010 18:29:50 +0000
(22:29 +0400)
committer
Stas Shtin
<antisvin@gmail.com>
Thu, 15 Apr 2010 18:29:50 +0000
(22:29 +0400)
src/ipypbx/http.py
patch
|
blob
|
history
diff --git
a/src/ipypbx/http.py
b/src/ipypbx/http.py
index
3dfe0b8
..
dff9b24
100644
(file)
--- a/
src/ipypbx/http.py
+++ b/
src/ipypbx/http.py
@@
-176,7
+176,7
@@
class HttpRequestParser(object):
print
for generator in self.parent.generators:
- if generator.canHandle(self.headers):
+ if generator.canHandle(self.data):
self.state += 1
print generator.generateConfig(self.headers)
else:
@@
-197,6
+197,7
@@
class FreeswitchConfigGenerator(object):
def canHandle(self, params):
for key, value in self.param_match.iteritems():
+ print key, value, params.get(key, None)
if params.get(key, None) != value:
return False
else: