summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/lib/libhttplib.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex
index cfe008b..685a0bf 100644
--- a/Doc/lib/libhttplib.tex
+++ b/Doc/lib/libhttplib.tex
@@ -214,7 +214,7 @@ Here is an example session that shows how to \samp{POST} requests:
... "Accept": "text/plain"}
>>> conn = httplib.HTTPConnection("musi-cal.mojam.com:80")
>>> conn.request("POST", "/cgi-bin/query", params, headers)
->>> response = h.getresponse()
+>>> response = conn.getresponse()
>>> print response.status, response.reason
200 OK
>>> data = response.read()