diff options
Diffstat (limited to 'devtools/client/netmonitor/test/sjs_sse-test-server.sjs')
-rw-r--r-- | devtools/client/netmonitor/test/sjs_sse-test-server.sjs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/devtools/client/netmonitor/test/sjs_sse-test-server.sjs b/devtools/client/netmonitor/test/sjs_sse-test-server.sjs new file mode 100644 index 0000000000..bbfc7679b5 --- /dev/null +++ b/devtools/client/netmonitor/test/sjs_sse-test-server.sjs @@ -0,0 +1,7 @@ +"use strict"; +function handleRequest(request, response) { + response.processAsync(); + response.setHeader("Content-Type", "text/event-stream"); + response.write("data: Why so serious?\n\n"); + response.finish(); +} |