workaround for nginx 1.2.7 bug
see http://trac.nginx.org/nginx/ticket/284#comment:5