mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 22:37:29 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
18
dom/media/tests/mochitest/identity/idp.sjs
Normal file
18
dom/media/tests/mochitest/identity/idp.sjs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
function handleRequest(request, response) {
|
||||
var key = '/.well-known/idp-proxy/' + request.queryString;
|
||||
dump(getState(key) + '\n');
|
||||
if (request.method === 'GET') {
|
||||
if (getState(key)) {
|
||||
response.setStatusLine(request.httpVersion, 200, 'OK');
|
||||
} else {
|
||||
response.setStatusLine(request.httpVersion, 404, 'Not Found');
|
||||
}
|
||||
} else if (request.method === 'PUT') {
|
||||
setState(key, 'OK');
|
||||
response.setStatusLine(request.httpVersion, 200, 'OK');
|
||||
} else {
|
||||
response.setStatusLine(request.httpVersion, 406, 'Method Not Allowed');
|
||||
}
|
||||
response.setHeader('Content-Type', 'text/plain;charset=UTF-8');
|
||||
response.write('OK');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue