Commits

maluke  committed 135cfe3

remove Content-MD5 from response if changing the body (for middleware)

  • Participants
  • Parent commits d8af9bc

Comments (0)

Files changed (1)

File webob/__init__.py

             raise TypeError(
                 "You can only set the body to a str (not %s)"
                 % type(value))
+        if self._body or self._app_iter:
+            self.content_md5 = None
         self._body = value
         self.content_length = len(value)
         self._app_iter = None