Skip to content

Commit

Permalink
Corrected type of PayPalStandardBase.query
Browse files Browse the repository at this point in the history
Thanks to hongquan for the catch
  • Loading branch information
spookylukey committed Mar 21, 2014
1 parent 536415a commit afba951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paypal/standard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def initialize(self, request):
self.query = request.META.get('QUERY_STRING', '')
elif request.method == 'POST':
# The following works if paypal sends an ASCII bytestring, which it does.
self.query = request.body
self.query = request.body.decode('ascii')
self.ipaddress = request.META.get('REMOTE_ADDR', '')

def _postback(self):
Expand Down

0 comments on commit afba951

Please sign in to comment.