Skip to content

Instantly share code, notes, and snippets.

View NitriKx's full-sized avatar

Benoît Sauvère NitriKx

View GitHub Profile
@NitriKx
NitriKx / SimpleHTTPServerWithUpload.py
Last active July 28, 2017 10:44 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload (support directories creation + only 127.0.0.1 + return 500 if error + CORS + Preflight requests + JSON/Gzip encoding support + DELETE)
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
__version__ = "0.1"
__all__ = ["SimpleHTTPRequestHandler"]