瀏覽代碼

Rename settings to config, just because.

RichardG867 10 年之前
父節點
當前提交
57a3b6d669
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      README.md
  2. 1 1
      config.py
  3. 1 1
      waybackproxy.py

+ 2 - 2
README.md

@@ -6,10 +6,10 @@ WaybackProxy is a HTTP proxy that sends all requests through the [Internet Archi
 
 ## Setup
 
-1. Edit `settings.py` to your liking
+1. Edit `config.py` to your liking
 2. Start `waybackproxy.py`
 3. Set your antique browser to use a HTTP proxy at the IP and port WaybackProxy is listening on
-4. Try it out! You can edit most settings that are in `settings.py` by browsing to http://web.archive.org while on the proxy, although you must edit `settings.py` to make them permanent.
+4. Try it out! You can edit most settings that are in `config.py` by browsing to http://web.archive.org while on the proxy, although you must edit `config.py` to make them permanent.
 5. Press Ctrl+C to stop
 
 ## Limitations

+ 1 - 1
settings.py → config.py

@@ -12,7 +12,7 @@ GEOCITIES_FIX = True
 # http://web.archive.org/... as a result.
 QUICK_IMAGES = True
 
-# Allow the Content-Type header to contain en encoding. Some old browsers
+# Allow the Content-Type header to contain an encoding. Some old browsers
 # (Mosaic?) don't understand that and fail to load anything - set this to
 # False if you're using one of them.
 CONTENT_TYPE_ENCODING = True

+ 1 - 1
waybackproxy.py

@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 import re, socket, SocketServer, urllib2, urlparse
-from settings import *
+from config import *
 
 class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
 	"""TCPServer with ThreadingMixIn added."""