mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 20:01:23 +00:00
symbols, not magic-numbers
This commit is contained in:
parent
0f6b4c33ac
commit
a3f4cc6983
@ -23,6 +23,10 @@ from twisted.web.resource import (
|
||||
from twisted.web.iweb import (
|
||||
IBodyProducer,
|
||||
)
|
||||
from twisted.web import (
|
||||
http,
|
||||
)
|
||||
|
||||
from twisted.internet.defer import (
|
||||
succeed,
|
||||
)
|
||||
@ -162,7 +166,7 @@ class _FakeTahoeUriHandler(Resource, object):
|
||||
|
||||
def render_PUT(self, request):
|
||||
data = request.content.read()
|
||||
request.setResponseCode(201) # real code does this for brand-new files
|
||||
request.setResponseCode(http.CREATED) # real code does this for brand-new files
|
||||
return self.add_data("URI:CHK:", data)
|
||||
|
||||
def render_POST(self, request):
|
||||
|
Loading…
x
Reference in New Issue
Block a user