]> granicus.if.org Git - python/commitdiff
Fix typo in httplib example.
authorFred Drake <fdrake@acm.org>
Fri, 21 Dec 2001 03:52:04 +0000 (03:52 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 21 Dec 2001 03:52:04 +0000 (03:52 +0000)
This fixes SF bug #495221.

Doc/lib/libhttplib.tex

index cfe008bdd096e7328a9b2c36273b3a3eee808d0f..685a0bf1600f9500f76e83e8099c07e91535fc95 100644 (file)
@@ -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()