mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00: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);
|
|
}
|
|
}
|
|
|