Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

Commit

Permalink
fix raw_post_data
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Feb 18, 2015
1 parent dcca5ff commit a7d2edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions couchlog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ def from_request_exception(cls, request):
record.save()
if use_raw_data:
try:
record.put_attachment(request.raw_post_data, name="post_data",
record.put_attachment(request.body, name="post_data",
content_type=request.META["CONTENT_TYPE"],
content_length=len(request.raw_post_data))
content_length=len(request.body))
except Exception:
logging.exception("Problem saving attachment to couchlog for %s" % record.get_id)
signals.couchlog_created.send_robust(sender="couchlog", record=record)
Expand Down

0 comments on commit a7d2edc

Please sign in to comment.