Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Matthew Ulm mattulm

I may be slow to respond.
View GitHub Profile
mattulm /
Created Aug 27, 2018 — forked from shivakar/
Python's SimpleHTTPServer extended to handle HTTP/1.1 Range requests
import os
import SimpleHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
class RangeHTTPRequestHandler(SimpleHTTPRequestHandler):
"""RangeHTTPRequestHandler is a SimpleHTTPRequestHandler
with HTTP 'Range' support"""
def send_head(self):
"""Common code for GET and HEAD commands.