Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Matthew Ulm mattulm

💭
I may be slow to respond.
View GitHub Profile
@mattulm
mattulm / RangeHTTPServer.py
Created Aug 27, 2018 — forked from shivakar/RangeHTTPServer.py
Python's SimpleHTTPServer extended to handle HTTP/1.1 Range requests
View RangeHTTPServer.py
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.