Commit 4eeae24e authored by Jim Fulton's avatar Jim Fulton

Fixed bug that caused the request body to be lost when a request was

retried on a conflict error.  I forgot to reset the request body.
parent bed04f5a
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.27 $'[11:-2] __version__='$Revision: 1.28 $'[11:-2]
import regex, sys, os, string import regex, sys, os, string
from string import lower, atoi, rfind, split, strip, join, upper, find from string import lower, atoi, rfind, split, strip, join, upper, find
...@@ -177,6 +177,7 @@ class HTTPRequest(BaseRequest): ...@@ -177,6 +177,7 @@ class HTTPRequest(BaseRequest):
def retry(self): def retry(self):
self.retry_count=self.retry_count+1 self.retry_count=self.retry_count+1
self.stdin.seek(0)
r=self.__class__(stdin=self.stdin, r=self.__class__(stdin=self.stdin,
environ=self._orig_env, environ=self._orig_env,
response=self.response.retry() response=self.response.retry()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment