core: fixes a bug which caused a crash when reading request header partially.
core: fixes a bug which caused a crash when reading request header partially.

xzero/x0,xzero/x0,xzero/x0,xzero/x0,christianparpart/x0,christianparpart/x0,xzero/x0,christianparpart/x0,christianparpart/x0,christianparpart/x0,christianparpart/x0,christianparpart/x0,xzero/x0