NancyFx/Nancy — pull request #1450 by DavidKarlas (2014-02-08 14:21:44+00:00)
Title: Workaround Mono HttpListener bug

This is more like suggestion then actual pull request since I'm not 100% that baseUri.AbsolutePath is covering all scenarios... One other option could be baseUri.OriginalString(breaking change?)

For more info about Mono bug see https://github.com/mono/mono/pull/891 and http://stackoverflow.com/questions/19741880/nancy-mono-self-host-wont-start-on-port-80.

Basically problem is that with ToString() ports 80 and 443 are removed and Mono's HttpListener has bug that does not listen on default port if port is not specified but random. This workaround is to be able to work on older versions of Mono because apt-get mono is updating really slow and will take probably year to get into apt-get...

As you wish ;)