view tests/reqheader.ur @ 1558:6fe6bda2b928

Disable C optimization in debug mode
author Adam Chlipala <adam@chlipala.net>
date Sun, 11 Sep 2011 11:37:26 -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>