From c3c695d462ea6c400688c86bf889a5213485ea53 Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 25 Aug 2011 13:38:00 +0200 Subject: [PATCH] fix typo --- gunicorn/http/_sendfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/_sendfile.py b/gunicorn/http/_sendfile.py index cacf6264..b31009ed 100644 --- a/gunicorn/http/_sendfile.py +++ b/gunicorn/http/_sendfile.py @@ -39,7 +39,7 @@ def sendfile(fdout, fdin, offset, nbytes): if result == -1: e = ctypes.get_errno() if e == errno.EAGAIN and _nbytes.value: - return nbytes.value + return _nbytes.value raise OSError(e, os.strerror(e)) return _nbytes.value elif sys.platform in ('freebsd', 'dragonfly',):