summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/stash.py
blob: 0b8693a901152cc7a7f21de1fbdd191dce6078c3 (plain)
1
2
3
4
5
6
7
8
9
10
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


def main(request, response):
    if request.method == 'POST':
        request.server.stash.put(request.GET["id"], request.body)
        return ''
    return request.server.stash.take(request.GET["id"])