mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision e2ac2e7d7539c4eb9963b7f23dbb3f7692fce537
This commit is contained in:
parent
e6e00cb554
commit
59ef536d5e
120 changed files with 1207 additions and 3167 deletions
|
@ -0,0 +1,11 @@
|
|||
import os
|
||||
|
||||
def main(request, response):
|
||||
CertChainMimeType = "application/cert-chain+cbor"
|
||||
|
||||
if request.headers.get("Accept") != CertChainMimeType:
|
||||
return 400, [], "Bad Request"
|
||||
|
||||
path = os.path.join(os.path.dirname(__file__), "127.0.0.1.sxg.pem.cbor")
|
||||
body = open(path, "rb").read()
|
||||
return 200, [("Content-Type", CertChainMimeType)], body
|
Loading…
Add table
Add a link
Reference in a new issue