Browse files

Making ``get_blacklisted_response`` work for both GET and POST.

Previously, this helper only worked if Twilio POSTed to us. In preparation for
supporting both GET and POST requests from Twilio, I'm updating this helper to
analyze HttpResponse.REQUEST as opposed to HttpResponse.POST, this way it'll
work in both cases.
  • Loading branch information...
1 parent 1945451 commit caf8e751ce1607c7f7bf888cad7cd8334a14053d Randall Degges committed Mar 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_twilio/
@@ -18,7 +18,7 @@ def get_blacklisted_response(request):
- caller = Caller.objects.get(phone_number=request.POST['From'])
+ caller = Caller.objects.get(phone_number=request.REQUEST['From'])
if caller.blacklisted:
r = Response()

0 comments on commit caf8e75

Please sign in to comment.