Proxy Server: POST に対応時のバグを修正
@@ -162,7 +162,9 @@ | ||
162 | 162 | for r in remove: |
163 | 163 | if r in hr: del hr[r] |
164 | 164 | conn = httplib.HTTPConnection(loc) |
165 | - conn.request(self.command, p.path, self.rfile.read(), hr) | |
165 | + if self.command == "GET": body = None | |
166 | + else: body=self.rfile.read() | |
167 | + conn.request(self.command, p.path, body, hr) | |
166 | 168 | return conn |
167 | 169 | def msg(self,r): |
168 | 170 | res = '' |