I'm working on a game in Python (for fun). However, I've come into a few issues where the game looks for a page to return the string "1", but the actual return is "1\r\n". This fouls my response checking. Is there any way to handle both strings?
Code:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# enable debugging
import cgitb
cgitb.enable()
print("Content-Type: text/plain;charset=utf-8")
print()
print(1)