Fix for tornado write issues on GET and POST methods.