ansible/test/integration/roles/test_uri/files/testserver.py

7 lines
174 B
Python

import mimetypes
if __name__ == '__main__':
mimetypes.init()
mimetypes.add_type('application/json', '.json')
import SimpleHTTPServer
SimpleHTTPServer.test()