|
|
@@ -3,6 +3,7 @@
|
|
|
# Copyright © 2008 Pascal Halter
|
|
|
# Copyright © 2008-2017 Guillaume Ayoub
|
|
|
# Copyright © 2017-2018 Unrud <unrud@outlook.com>
|
|
|
+# Copyright © 2024-2024 Peter Bieringer <pb@bieringer.de>
|
|
|
#
|
|
|
# This library is free software: you can redistribute it and/or modify
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
@@ -146,6 +147,8 @@ class ApplicationPartPut(ApplicationBase):
|
|
|
except Exception as e:
|
|
|
logger.warning(
|
|
|
"Bad PUT request on %r (read_components): %s", path, e, exc_info=True)
|
|
|
+ if self._log_bad_put_request_content:
|
|
|
+ logger.warning("Bad PUT request content of %r:\n%s", path, content)
|
|
|
return httputils.BAD_REQUEST
|
|
|
(prepared_items, prepared_tag, prepared_write_whole_collection,
|
|
|
prepared_props, prepared_exc_info) = prepare(
|