One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # Extended python -m http.serve with --username and --password parameters for | |
| # basic auth, based on https://gist.github.com/fxsjy/5465353 | |
| # Usage: python -m http_server_auth -u USERNAME -p PASSWORD -d . | |
| import base64 | |
| import os | |
| from functools import partial | |
| from http.server import SimpleHTTPRequestHandler, test | |
| class AuthHTTPRequestHandler(SimpleHTTPRequestHandler): |