Sign in
webkit
/
WebKit
/
6501da5d9efd585f38613665c05cd2c5dda52074
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
XMLHttpRequest
/
resources
/
delay.py
blob: 0fa1276f8788961a635e24ed423674c71ccc6599 [
file
] [
log
] [
blame
]
import
time
def
main
(
request
,
response
):
delay
=
float
(
request
.
GET
.
first
(
"ms"
,
500
))
time
.
sleep
(
delay
/
1E3
);
return
[(
"Access-Control-Allow-Origin"
,
"*"
),
(
"Access-Control-Allow-Methods"
,
"YO"
),
(
"Content-type"
,
"text/plain"
)],
"TEST_DELAY"