Skip to content

Commit cc960e3

Browse files
committed
Merge pull request hydralabs#22 from tekromancr/master
Django 1.6 compatability fix
2 parents 80b7fde + 7ebec9c commit cc960e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyamf/remoting/gateway/django.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ def __call__(self, http_request):
9999
request = remoting.decode(http_request.raw_post_data,
100100
strict=self.strict, logger=self.logger,
101101
timezone_offset=timezone_offset)
102+
except AttributeError: # fix to make work with Django 1.6
103+
request = remoting.decode(http_request.body,
104+
strict=self.strict, logger=self.logger,
105+
timezone_offset=timezone_offset)
102106
except (pyamf.DecodeError, IOError):
103107
if self.logger:
104108
self.logger.exception('Error decoding AMF request')

0 commit comments

Comments
 (0)