This is from the Fall 2013 version of the course. For the most recent version, try http://rust-class.org/pages/ps1-reference.html.

Problem Set 1 Reference Solution

Our reference solution for PS1 is here: zhttpto.rs. Thanks to Kiet Tran for providing code we used for the reference solution.

Note that our code makes an attempt to close the horrendous security hole of allowing the server to send any requested file by removing '/../'s from the request, but there is (at least) one major security vulnerability remaining. (Finding it is worth a Rust sticker.)