Fix longpoll tokens check
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ci/woodpecker/push/woodpecker Pipeline was successful
				
			This commit is contained in:
		| @@ -56,7 +56,7 @@ async def view_doorboy_uids(request): | ||||
| @app.route("/longpoll", stream=True) | ||||
| async def view_longpoll(request): | ||||
|     response = await request.respond(content_type="text/event-stream") | ||||
|     if request.headers.get("KEY") != DOORBOY_SECRET: | ||||
|     if key not in [DOORBOY_SECRET_FLOOR, DOORBOY_SECRET_WORKSHOP]: | ||||
|         return text("Invalid token") | ||||
|  | ||||
|     await response.send("data: response-generator-started\n\n") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user