Possible fix for gh #763.

Should fix gh: 763.

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