• R/O
  • SSH
  • HTTPS

o2on: Commit


Commit MetaInfo

Revision174 (tree)
Zeit2009-09-30 17:55:54
Autornawota

Log Message

Proxy Server: POST に対応時のバグを修正

Ändern Zusammenfassung

Diff

--- trunk/opy2on/lib/o2on_server.py (revision 173)
+++ trunk/opy2on/lib/o2on_server.py (revision 174)
@@ -162,7 +162,9 @@
162162 for r in remove:
163163 if r in hr: del hr[r]
164164 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)
166168 return conn
167169 def msg(self,r):
168170 res = ''
Show on old repository browser