mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
13 lines
318 B
JavaScript
13 lines
318 B
JavaScript
function handleRequest(request, response)
|
|
{
|
|
response.setHeader("Content-Type", "text/plain", false);
|
|
if (request.method == "GET") {
|
|
response.write(request.queryString);
|
|
} else {
|
|
var rawdata = request.body.purge();
|
|
var data = String.fromCharCode.apply(null, rawdata);
|
|
response.write(data);
|
|
}
|
|
}
|
|
|