mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 00:24:13 +00:00
Stop explicitly finishing and then returning a string
This commit is contained in:
parent
69c7c40510
commit
df949868b6
@ -163,7 +163,6 @@ def POSTUnlinkedCreateDirectory(req, client):
|
|||||||
new_url = "uri/" + urllib.quote(res.get_uri())
|
new_url = "uri/" + urllib.quote(res.get_uri())
|
||||||
req.setResponseCode(http.SEE_OTHER) # 303
|
req.setResponseCode(http.SEE_OTHER) # 303
|
||||||
req.setHeader('location', new_url)
|
req.setHeader('location', new_url)
|
||||||
req.finish()
|
|
||||||
return ''
|
return ''
|
||||||
d.addCallback(_then_redir)
|
d.addCallback(_then_redir)
|
||||||
else:
|
else:
|
||||||
@ -182,7 +181,6 @@ def POSTUnlinkedCreateDirectoryWithChildren(req, client):
|
|||||||
new_url = "uri/" + urllib.quote(res.get_uri())
|
new_url = "uri/" + urllib.quote(res.get_uri())
|
||||||
req.setResponseCode(http.SEE_OTHER) # 303
|
req.setResponseCode(http.SEE_OTHER) # 303
|
||||||
req.setHeader('location', new_url)
|
req.setHeader('location', new_url)
|
||||||
req.finish()
|
|
||||||
return ''
|
return ''
|
||||||
d.addCallback(_then_redir)
|
d.addCallback(_then_redir)
|
||||||
else:
|
else:
|
||||||
@ -201,7 +199,6 @@ def POSTUnlinkedCreateImmutableDirectory(req, client):
|
|||||||
new_url = "uri/" + urllib.quote(res.get_uri())
|
new_url = "uri/" + urllib.quote(res.get_uri())
|
||||||
req.setResponseCode(http.SEE_OTHER) # 303
|
req.setResponseCode(http.SEE_OTHER) # 303
|
||||||
req.setHeader('location', new_url)
|
req.setHeader('location', new_url)
|
||||||
req.finish()
|
|
||||||
return ''
|
return ''
|
||||||
d.addCallback(_then_redir)
|
d.addCallback(_then_redir)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user