When learning python chapter 8, we wrote a generate_names.py
import json
import athletemodel
import yate
names = athletemodel.get_names_from_store()
print(yate.start_response('application/json'))
print(json.dumps(sorted(names)))
We start the service and enter http://localhost:8088/cgi-bin/generate_names.py in the google browser
The data will be displayed normally. However, in the window development environment, most of us still use the IE browser, and then enter the
When http://localhost:8088/cgi-bin/generate_names.py, it was a tragedy, it didn't show for a long time, wait a while,
Actually prompt to save, why?
It turns out that this is the ghost of the IE11 kernel mechanism. We changed print(yate.start_response('application/json')) to
print(yate.start_response('text/json')) can be displayed normally, but it still takes a long time to display.