1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/social/test/browser/echo.sjs Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,9 @@ 1.4 +// A server-side JS test file for frameworker testing. It exists only to 1.5 +// work-around a lack of data: URL support in the frameworker. 1.6 + 1.7 +function handleRequest(request, response) 1.8 +{ 1.9 + // The query string is the javascript - we just write it back. 1.10 + response.setHeader("Content-Type", "application/javascript; charset=utf-8", false); 1.11 + response.write(unescape(request.queryString)); 1.12 +}