Mercurial > urweb
view tests/reqheader.ur @ 2143:4895c41b2ec6
Make naughtyDebug use protocol-specific logging
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 10 May 2015 12:13:12 -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>