Have to setup the proper mime-types before importing SImpleHttpServer

This commit is contained in:
Toshio Kuratomi
2015-05-21 12:24:41 -07:00
parent 7af2632c87
commit a8d52e3e94
2 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import mimetypes
import SimpleHTTPServer
if __name__ == '__main__':
mimetypes.init()
mimetypes.add_type('application/json', '.json')
import SimpleHTTPServer
SimpleHTTPServer.test()