mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Have to setup the proper mime-types before importing SImpleHttpServer
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import mimetypes
|
||||
import SimpleHTTPServer
|
||||
|
||||
if __name__ == '__main__':
|
||||
mimetypes.init()
|
||||
mimetypes.add_type('application/json', '.json')
|
||||
import SimpleHTTPServer
|
||||
SimpleHTTPServer.test()
|
||||
|
||||
Reference in New Issue
Block a user