mirror of https://gitlab.com/bashrc2/epicyon
Test earlier
parent
cff042fcb0
commit
98a46065aa
11
daemon.py
11
daemon.py
|
@ -9758,6 +9758,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
|
# if an image is received
|
||||||
|
if self.headers.get('Accept'):
|
||||||
|
if 'image/' in self.headers['Accept']:
|
||||||
|
print('image GET header: ' + str(self.headers).replace('\n', ', '))
|
||||||
|
|
||||||
callingDomain = self.server.domainFull
|
callingDomain = self.server.domainFull
|
||||||
if self.headers.get('Host'):
|
if self.headers.get('Host'):
|
||||||
callingDomain = self.headers['Host']
|
callingDomain = self.headers['Host']
|
||||||
|
@ -9932,12 +9937,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
print('@ detected: html ' + str(htmlGET))
|
print('@ detected: html ' + str(htmlGET))
|
||||||
print('@ detected: path ' + self.path)
|
print('@ detected: path ' + self.path)
|
||||||
|
|
||||||
# if an image is received
|
|
||||||
if not htmlGET:
|
|
||||||
if self.headers.get('Accept'):
|
|
||||||
if 'image/' in self.headers['Accept']:
|
|
||||||
print('image GET header: ' + str(self.headers).replace('\n', ', '))
|
|
||||||
|
|
||||||
# get css
|
# get css
|
||||||
# Note that this comes before the busy flag to avoid conflicts
|
# Note that this comes before the busy flag to avoid conflicts
|
||||||
if self.path.endswith('.css'):
|
if self.path.endswith('.css'):
|
||||||
|
|
Loading…
Reference in New Issue