Permalink
Browse files

Merge pull request #22 from tekromancr/master

Django 1.6 compatability fix
  • Loading branch information...
njoyce committed Feb 7, 2014
2 parents 80b7fde + 7ebec9c commit cc960e3d818749e112b323820d08cbacd9ef4ae9
Showing with 4 additions and 0 deletions.
  1. +4 −0 pyamf/remoting/gateway/django.py
@@ -99,6 +99,10 @@ def __call__(self, http_request):
request = remoting.decode(http_request.raw_post_data,
strict=self.strict, logger=self.logger,
timezone_offset=timezone_offset)
+ except AttributeError: # fix to make work with Django 1.6
+ request = remoting.decode(http_request.body,
+ strict=self.strict, logger=self.logger,
+ timezone_offset=timezone_offset)
except (pyamf.DecodeError, IOError):
if self.logger:
self.logger.exception('Error decoding AMF request')

0 comments on commit cc960e3

Please sign in to comment.