Mercurial > urweb
view tests/reqheader.ur @ 1440:6064ddd90ca6
Fix C compilation of empty records; use DESTDIR in 'make install/uninstall'
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 20 Mar 2011 13:15:11 -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>