diff --git a/content/base/test/Makefile.in b/content/base/test/Makefile.in index 303d80ea7368..305989f699c8 100644 --- a/content/base/test/Makefile.in +++ b/content/base/test/Makefile.in @@ -248,6 +248,8 @@ _TEST_FILES1 = test_bug5141.html \ test_bug454325.html \ file_bug391728_2.html \ test_bug456262.html \ + test_bug482935.html \ + bug482935.sjs \ test_bug590870.html \ file_bug590870.html \ test_bug590812.html \ diff --git a/content/base/test/bug482935.sjs b/content/base/test/bug482935.sjs new file mode 100644 index 000000000000..daadb5ab2fae --- /dev/null +++ b/content/base/test/bug482935.sjs @@ -0,0 +1,12 @@ +function handleRequest(request, response) { + var body = "initial"; + + try { + body = request.getHeader("X-Request"); + } catch(e) { + body = "request.getHeader() failed! Exception: " + e; + } + + response.setHeader("Cache-Control", "max-age=3600"); + response.bodyOutputStream.write(body, body.length); +} diff --git a/content/base/test/test_bug482935.html b/content/base/test/test_bug482935.html new file mode 100644 index 000000000000..202556f3cb13 --- /dev/null +++ b/content/base/test/test_bug482935.html @@ -0,0 +1,121 @@ + + +
+