Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flaskdav
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
flaskdav
Commits
e8eaa8d3
Commit
e8eaa8d3
authored
Dec 03, 2015
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change a HTTP status code + add a TODO.
parent
0d944f8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
flaskdav.py
flaskdav.py
+2
-2
No files found.
flaskdav.py
View file @
e8eaa8d3
...
...
@@ -129,8 +129,7 @@ class WebDAV(MethodView):
# files... http://flask.pocoo.org/docs/0.10/patterns/streaming/
data
=
data_resource
.
read
()
except
Exception
:
# 403?
response
.
status
=
'403'
response
.
status
=
'500'
else
:
response
.
status
=
'404'
...
...
@@ -148,6 +147,7 @@ class WebDAV(MethodView):
response
=
g
.
response
localpath
=
FS_HANDLER
.
uri2local
(
pathname
)
# TODO: get large request chunk by chunk...
request_body
=
self
.
get_body
()
if
request_body
is
None
:
response
.
status
=
'500'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment