···5151 |> wisp.set_header("content-type", "text/plain")
5252 // The content-disposition header is set by this function to ensure this is
5353 // treated as a file download. If the file was uploaded by the user then you
5454- // want to ensure that this header is ste as otherwise the browser may try to
5555- // display the file, which could enable in cross-site scripting attacks.
5454+ // want to ensure that this header is set as otherwise the browser may try to
5555+ // display the file, which could enable cross-site scripting attacks.
5656 |> wisp.file_download_from_memory(
5757 named: "hello.txt",
5858 containing: file_contents,
···6363 use <- wisp.require_method(req, Get)
64646565 // In this case the file exists on the disc.
6666- // Here's we're using the project README, but in a real application you'd
6666+ // Here we're using the project README, but in a real application you'd
6767 // probably have an absolute path to wherever it is you keep your files.
6868 let file_path = "./README.md"
6969