Commit e8eaa8d3 authored by iv's avatar iv

Change a HTTP status code + add a TODO.

parent 0d944f8e
...@@ -129,8 +129,7 @@ class WebDAV(MethodView): ...@@ -129,8 +129,7 @@ class WebDAV(MethodView):
# files... http://flask.pocoo.org/docs/0.10/patterns/streaming/ # files... http://flask.pocoo.org/docs/0.10/patterns/streaming/
data = data_resource.read() data = data_resource.read()
except Exception: except Exception:
# 403? response.status = '500'
response.status = '403'
else: else:
response.status = '404' response.status = '404'
...@@ -148,6 +147,7 @@ class WebDAV(MethodView): ...@@ -148,6 +147,7 @@ class WebDAV(MethodView):
response = g.response response = g.response
localpath = FS_HANDLER.uri2local(pathname) localpath = FS_HANDLER.uri2local(pathname)
# TODO: get large request chunk by chunk...
request_body = self.get_body() request_body = self.get_body()
if request_body is None: if request_body is None:
response.status = '500' response.status = '500'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment