From 4c8794a4d138e804973dc2df23c35c99d6c40886 Mon Sep 17 00:00:00 2001
From: shortcutme <hello@noloop.me>
Date: Fri, 18 Nov 2016 20:12:10 +0100
Subject: [PATCH] Support header_length in Zeroname plugin

---
 plugins/Zeroname/UiRequestPlugin.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/Zeroname/UiRequestPlugin.py b/plugins/Zeroname/UiRequestPlugin.py
index d1e71362..66b8f50a 100644
--- a/plugins/Zeroname/UiRequestPlugin.py
+++ b/plugins/Zeroname/UiRequestPlugin.py
@@ -12,14 +12,14 @@ class UiRequestPlugin(object):
         super(UiRequestPlugin, self).__init__(*args, **kwargs)
 
     # Media request
-    def actionSiteMedia(self, path):
+    def actionSiteMedia(self, path, header_length=True):
         match = re.match("/media/(?P<address>[A-Za-z0-9-]+\.[A-Za-z0-9\.-]+)(?P<inner_path>/.*|$)", path)
         if match:  # Its a valid domain, resolve first
             domain = match.group("address")
             address = self.site_manager.resolveDomain(domain)
             if address:
                 path = "/media/" + address + match.group("inner_path")
-        return super(UiRequestPlugin, self).actionSiteMedia(path)  # Get the wrapper frame output
+        return super(UiRequestPlugin, self).actionSiteMedia(path, header_length=header_length)  # Get the wrapper frame output
 
     # Is mediarequest allowed from that referer
     def isMediaRequestAllowed(self, site_address, referer):