Serve files without wrapper if requested using /raw/ prefix
This commit is contained in:
parent
6c0062dbc1
commit
febdea6c64
4 changed files with 33 additions and 13 deletions
|
@ -12,7 +12,7 @@ class UiRequestPlugin(object):
|
|||
super(UiRequestPlugin, self).__init__(*args, **kwargs)
|
||||
|
||||
# Media request
|
||||
def actionSiteMedia(self, path, header_length=True):
|
||||
def actionSiteMedia(self, path, **kwargs):
|
||||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue