view tests/reqheader.ur @ 1537:e627bab3eda7

Fix list urlification
author Adam Chlipala <adam@chlipala.net>
date Sun, 14 Aug 2011 16:46:36 -0400
parents 360cbc202756
children
line wrap: on
line source
fun main () : transaction page =
    ua <- requestHeader "User-Agent";
    case ua of
        None => return <xml>Not found</xml>
      | Some s => return <xml>User-Agent: {[s]}</xml>