Fixed wrong header if no extensions have been negotiated