From 59fa9df2ad55231f8814f0c79d17637a84713f54 Mon Sep 17 00:00:00 2001 From: Jan Koppe Date: Mon, 20 Apr 2020 18:55:45 +0200 Subject: [PATCH] check for application and streamkey combination instead of separately --- srs/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srs/views.py b/srs/views.py index 0b2c92a..39232fb 100644 --- a/srs/views.py +++ b/srs/views.py @@ -27,8 +27,8 @@ def callback(request): except KeyError: return HttpResponse('1', status=401) try: - app = models.Application.objects.get(name=app_name) - streamkey = models.Streamkey.objects.get(key=stream_name) + application = models.Application.objects.get(name=app_name) + streamkey = models.Streamkey.objects.get(key=stream_name, application=application) except ObjectDoesNotExist: return HttpResponse('1', status=401)