issue 585 reopen

please take a look at https://github.com/defnull/bottle/pull/585