Mercurial > cpython-lru_cache-weakref
diff Misc/FAQ @ 5200:024e738674a5 legacy-trunk
Added Q. about HTTP/1.1.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 16 Mar 1997 18:34:00 +0000 |
| parents | 829c42893181 |
| children | 5878a5af3148 |
line wrap: on
line diff
--- a/Misc/FAQ Sun Mar 16 00:37:59 1997 +0000 +++ b/Misc/FAQ Sun Mar 16 18:34:00 1997 +0000 @@ -180,6 +180,7 @@ automatically saved to and restored from disk.) 4.40. Q. I try to use __spam and I get an error about _SomeClassName__spam. 4.41. Q. How do I delete a file? And other file questions. + 4.42. Q. How to modify urllib or httplib to support HTTP/1.1? 5. Extending Python 5.1. Q. Can I create my own functions in C? @@ -1690,6 +1691,16 @@ There's also os.ftruncate(fd, offset) for files opened with os.open() -- for advanced Unix hacks only. +4.42. Q. How to modify urllib or httplib to support HTTP/1.1? + +A. Apply the following patch to httplib.py: + +41c41 +< replypat = regsub.gsub('\\.', '\\\\.', HTTP_VERSION) + \ +--- +> replypat = regsub.gsub('\\.', '\\\\.', 'HTTP/1.[0-9]+') + \ + + 5. Extending Python ===================
