diff options
-rw-r--r-- | tests/contentDisposition.ur | 4 | ||||
-rw-r--r-- | tests/contentDisposition.urp | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/contentDisposition.ur b/tests/contentDisposition.ur new file mode 100644 index 00000000..8fe2b26c --- /dev/null +++ b/tests/contentDisposition.ur @@ -0,0 +1,4 @@ +fun main () : transaction page = + setHeader (blessResponseHeader "Content-Disposition") + ("attachment; filename=test.txt"); + returnBlob (textBlob "Hi there!") (blessMime "text/plain") diff --git a/tests/contentDisposition.urp b/tests/contentDisposition.urp new file mode 100644 index 00000000..92b02871 --- /dev/null +++ b/tests/contentDisposition.urp @@ -0,0 +1,5 @@ +rewrite all ContentDisposition/* +allow responseHeader Content-Disposition +allow mime text/plain + +contentDisposition
\ No newline at end of file |