mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-25 20:51:53 +08:00
fix: return correct amount of written bytes
This commit is contained in:
+1
-1
@@ -181,5 +181,5 @@ type responseWriterNoBody struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w responseWriterNoBody) Write(data []byte) (int, error) {
|
func (w responseWriterNoBody) Write(data []byte) (int, error) {
|
||||||
return 0, nil
|
return len(data), nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user