Skip to content

Instantly share code, notes, and snippets.

View bijoy26's full-sized avatar
🎯
Focusing

Anjum Rashid bijoy26

🎯
Focusing
View GitHub Profile
@mildred
mildred / server.py
Created October 9, 2014 10:20
Python 3 http.server with PUT support
#!/usr/bin/env python
import argparse
import http.server
import os
class HTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
def do_PUT(self):
path = self.translate_path(self.path)
if path.endswith('/'):