blob: bb0ce797489532d4400d07f05c3e43f85bc030b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
import time
def application(env, start_response):
delay = int(env.get('HTTP_X_DELAY', 0))
start_response('200', [('Content-Length', '0'), ('X-Upstream', '2')])
time.sleep(delay)
return []
|