kolbyjack on irc helped me figure this out. The preceding call did not return any data correctly, and thus a 0\ was stuck in the buffer. Fixed the call before the post and voila! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,227783,227785#msg-227785