File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1547,11 +1547,11 @@ def cfbot_ingest(message):
15471547@csrf_exempt
15481548def cfbot_notify (request ):
15491549 if request .method != "POST" :
1550- return HttpResponseForbidden ("Invalid method" )
1550+ return HttpResponseForbidden (b "Invalid method" )
15511551
15521552 j = json .loads (request .body )
15531553 if not hmac .compare_digest (j ["shared_secret" ], settings .CFBOT_SECRET ):
1554- return HttpResponseForbidden ("Invalid API key" )
1554+ return HttpResponseForbidden (b "Invalid API key" )
15551555
15561556 cfbot_ingest (j )
15571557 return HttpResponse (status = 200 )
@@ -1560,11 +1560,11 @@ def cfbot_notify(request):
15601560@csrf_exempt
15611561def thread_notify (request ):
15621562 if request .method != "POST" :
1563- return HttpResponseForbidden ("Invalid method" )
1563+ return HttpResponseForbidden (b "Invalid method" )
15641564
15651565 j = json .loads (request .body )
15661566 if j ["apikey" ] != settings .ARCHIVES_APIKEY :
1567- return HttpResponseForbidden ("Invalid API key" )
1567+ return HttpResponseForbidden (b "Invalid API key" )
15681568
15691569 for m in j ["messageids" ]:
15701570 try :
You can’t perform that action at this time.
0 commit comments