Stop explicitly finishing and then returning a string

This commit is contained in:
Jean-Paul Calderone 2020-10-15 14:47:30 -04:00
parent 69c7c40510
commit df949868b6

View File

@ -163,7 +163,6 @@ def POSTUnlinkedCreateDirectory(req, client):
new_url = "uri/" + urllib.quote(res.get_uri())
req.setResponseCode(http.SEE_OTHER) # 303
req.setHeader('location', new_url)
req.finish()
return ''
d.addCallback(_then_redir)
else:
@ -182,7 +181,6 @@ def POSTUnlinkedCreateDirectoryWithChildren(req, client):
new_url = "uri/" + urllib.quote(res.get_uri())
req.setResponseCode(http.SEE_OTHER) # 303
req.setHeader('location', new_url)
req.finish()
return ''
d.addCallback(_then_redir)
else:
@ -201,7 +199,6 @@ def POSTUnlinkedCreateImmutableDirectory(req, client):
new_url = "uri/" + urllib.quote(res.get_uri())
req.setResponseCode(http.SEE_OTHER) # 303
req.setHeader('location', new_url)
req.finish()
return ''
d.addCallback(_then_redir)
else: