diff libervia/backend/plugins/plugin_comp_file_sharing.py @ 4097:0f6fd28fde0d

component file sharing: fix method name case: `render_OPTIONS` is a method inherited from Twisted, name has been put to lowercase following massive refactoring, resulting in the method not being called anymore. This patch fixes it.
author Goffi <goffi@goffi.org>
date Thu, 22 Jun 2023 15:45:20 +0200
parents 4b842c1fb686
children 6784d07b99c8
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_comp_file_sharing.py	Mon Jun 12 15:00:59 2023 +0200
+++ b/libervia/backend/plugins/plugin_comp_file_sharing.py	Thu Jun 22 15:45:20 2023 +0200
@@ -136,7 +136,7 @@
             "Date, Content-Length, Content-Range")
         return super().render(request)
 
-    def render_options(self, request):
+    def render_OPTIONS(self, request):
         request.setResponseCode(http.OK)
         return b""