Copy from http://mod-spdy.googlecode.com/svn/trunk/