mirror of
https://github.com/sloumdrone/burrow
synced 2024-06-14 13:06:36 +00:00
Changed behavior for html files served over gopher vs http
This commit is contained in:
parent
54303bb5f8
commit
49e1caac1a
6
gui.py
6
gui.py
|
@ -261,6 +261,7 @@ class GUI:
|
||||||
|
|
||||||
if not response:
|
if not response:
|
||||||
# send error to screen
|
# send error to screen
|
||||||
|
print('ERROR in execute address...')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
@ -402,9 +403,6 @@ class GUI:
|
||||||
if x['port'] and x['port'][0] != ':':
|
if x['port'] and x['port'][0] != ':':
|
||||||
x['port'] = ':{}'.format(x['port'])
|
x['port'] = ':{}'.format(x['port'])
|
||||||
|
|
||||||
if x['type'] == 'h':
|
|
||||||
link = 'gopher://{}/{}'.format(x['host'], x['resource'])
|
|
||||||
else:
|
|
||||||
link = 'gopher://{}{}/{}{}'.format(x['host'], x['port'], x['type'], x['resource'])
|
link = 'gopher://{}{}/{}{}'.format(x['host'], x['port'], x['type'], x['resource'])
|
||||||
|
|
||||||
tag_name = 'link{}'.format(self.link_count)
|
tag_name = 'link{}'.format(self.link_count)
|
||||||
|
@ -481,7 +479,7 @@ class GUI:
|
||||||
|
|
||||||
|
|
||||||
def send_to_screen(self, data, itemtype='1', clear=True):
|
def send_to_screen(self, data, itemtype='1', clear=True):
|
||||||
if itemtype == '0':
|
if itemtype in ['0','h']:
|
||||||
self.show_text(data)
|
self.show_text(data)
|
||||||
elif itemtype in ['1','3','7']:
|
elif itemtype in ['1','3','7']:
|
||||||
data = self.parser.parse_menu(data)
|
data = self.parser.parse_menu(data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user