fixed wsgi error: upstream prematurely closed connection while reading response header