I\'m writing this in python, long version:
file_name = data.decode().splitlines()[0].split(" ")[1] if file_name = \'/\' file_name = \'/index.htm