]> granicus.if.org Git - php/commitdiff
Fixed a bug that cannot access custom request header stored in apache_request_headers...
authorGeorge Wang <gwang@php.net>
Fri, 11 Jul 2014 18:31:59 +0000 (14:31 -0400)
committerGeorge Wang <gwang@php.net>
Fri, 11 Jul 2014 18:31:59 +0000 (14:31 -0400)
sapi/litespeed/lsapilib.c

index 92c169f4f5a3ec1b981d9b692f54129517240f5b..786a3bd20b21df0c32422343f36b5c27211eefa9 100644 (file)
@@ -1945,6 +1945,7 @@ int LSAPI_ForeachOrgHeader_r( LSAPI_Request * pReq,
         {
             pKey = pReq->m_pHttpHeader + pCur->nameOff;
             keyLen = pCur->nameLen;
+            *(pKey + keyLen ) = 0;
 
             pValue = pReq->m_pHttpHeader + pCur->valueOff;
             *(pValue + pCur->valueLen ) = 0;