if environ["PATH_INFO"] == "/signup":
info = pformat(environ["wsgi.input"].read(int(environ["CONTENT_LENGTH"])))
print(info)
binfo = environ["wsgi.input"].read(int(environ["CONTENT_LENGTH"]))
start_response("200 OK", [("Content-Type", "application/octet-stream")])
return[environ["wsgi.input"].read(int(environ["CONTENT_LENGTH"]))]
okay so this code is meant to read the input from an html form, and send it to the signup page so you can see what was entered. now, nobody is using this but me so ik it’s insecure i just wanted to see something
basically, the issue is in the last line, the return line. for some reason, when i put this line in it keeps loading?? this is not the case when i put info.encode(“UTF-8”). i’m not sure why? i get no errors as well, it just…loads instead! and the return type for the thing inside the brackets is bytes so i’m not sure where the issue is here
if anyone could kindly let me know, that would be nice
thanks!