Skip to content

Commit

Permalink
increment version and fix webserver
Browse files Browse the repository at this point in the history
  • Loading branch information
cthill committed Mar 10, 2018
1 parent 30a2679 commit 96db2b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def handle_signal(self, signum, frame):

if __name__ == '__main__':
logging.basicConfig(format='%(message)s', level=logging.INFO)
logging.info('LocalSO v1.0')
logging.info('LocalSO v1.1')

files = ['Resources.sor', 'StickOnline.exe', 'Readme.txt']
for filename in files:
Expand Down
6 changes: 1 addition & 5 deletions server/src/server/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def do_GET(self):
}))

elif self.path == '/download/v2/Announcements.txt':
self._set_headers(200)
self._set_headers(200, content_length=len(config.MENU_MOTD))
self.wfile.write(config.MENU_MOTD)

elif self.path == '/download/v2/UpdateList.sul':
Expand All @@ -54,10 +54,6 @@ def do_GET(self):
elif self.path == '/download/v2/Readme.txt':
self.send_file(config.GAME_BIN_DIR + '/Readme.txt')

elif self.path.startswith('/boards/index.php?action=keepalive'):
self._set_headers(200, content_type='image/gif')
self.wfile.write(base64.b64decode('R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='))

else:
self._set_headers(404, content_type='text/html')
self.wfile.write('Not found.')
Expand Down

0 comments on commit 96db2b9

Please sign in to comment.