https://github.com/padrino/padrino-framework/issues/1566