summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/infrastructure/urls/resolving-urls/query-encoding/resources/manifest.py
blob: 05b47f8163f967cb794423b0ff3b8910b66b6a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
def main(request, response):
    id = request.GET['id']
    mode = request.GET['mode']
    fallback_url = ""
    if mode == "FALLBACK":
        fallback_url = "fallback-namespace/"
    manifest = u"""CACHE MANIFEST

%s:
%s stash.py?q=\u00E5&id=%s&action=put
""" % (mode, fallback_url, id)
    return [("Content-Type", "text/cache-manifest; charset=%s" % request.GET['encoding'])], manifest.encode('utf-8') # charset should be ignored for cache manifests