biggosh / pywebdav

Automatically exported from code.google.com/p/pywebdav
0 stars 1 forks source link

HEAD does not properly set Content-Length #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use version 0.9.8, version 72 from subversion.
2. Run davserver -D . -n
3. Mount with fusedav,  fusedav http://localhost:8008 mnt
4. Read files on the mount to cause a HEAD

What is the expected output? What do you see instead?
The HEAD should set Content-Length to the size of the file, instead it returns 
0.  fusedav relies on this behavior. 

What version of the product are you using? On what operating system?
0.9.8, or version 72 from subversion
Ubuntu 12.04 x86_64

Please provide any additional information below.

Attached is a patch for 0.9.8

Original issue reported on code.google.com by haxmeadr...@gmail.com on 12 Sep 2012 at 3:05

Attachments:

GoogleCodeExporter commented 8 years ago
Could you upload your patch on https://codereview.appspot.com/
I have some comments to do and it is much easier.

Original comment by cedric.krier@b2ck.com on 20 Sep 2012 at 9:28