~mdw
/
hippotat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename "password" to "secret" everywhere
[hippotat]
/
hippotatd
diff --git
a/hippotatd
b/hippotatd
index
40f4c69
..
bbc8666
100755
(executable)
--- a/
hippotatd
+++ b/
hippotatd
@@
-182,7
+182,7
@@
def process_request(request, desca):
ci = ipaddr(ci_s)
desca['ci'] = ci
cl = clients[ci]
ci = ipaddr(ci_s)
desca['ci'] = ci
cl = clients[ci]
- if pw != cl.cc.
password: raise ValueError('bad password
')
+ if pw != cl.cc.
secret: raise ValueError('bad secret
')
desca['pwok']=True
if tro != cl.cc.target_requests_outstanding:
desca['pwok']=True
if tro != cl.cc.target_requests_outstanding:
@@
-218,7
+218,7
@@
class NotStupidResource(twisted.web.resource.Resource):
# why this is not the default is a mystery!
def getChild(self, name, request):
if name == b'': return self
# why this is not the default is a mystery!
def getChild(self, name, request):
if name == b'': return self
- else: return twisted.web.resource.Resource.getChild(name, request)
+ else: return twisted.web.resource.Resource.getChild(
self,
name, request)
class IphttpResource(NotStupidResource):
def render_POST(self, request):
class IphttpResource(NotStupidResource):
def render_POST(self, request):