Updated how the request environment is created and passed to cgi.FieldStorage, since not every app request contains a 'Content-Type' (surprisingly)