Skip to content

Instantly share code, notes, and snippets.

@twdkeule
twdkeule / add_http_headers.py
Created May 24, 2017 07:49
Adds HTTP headers to files (and files in directories) to use with the Googe proto-quic quic_server
#!/usr/bin/env python3
import os
from sys import argv
'''
Adds a minimal HTTP header to files and directories and places them in 'with_headers/'.
Accepts files and directories as CL arguments. The directories will be traversed and all files will be processed.
Specifically designed for https://github.com/google/proto-quic/.
'''