"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/http/httpvhost.cpp" between
openlitespeed-1.6.3.src.tgz and openlitespeed-1.6.4.src.tgz

About: OpenLiteSpeed is a high-performance, lightweight HTTP server with optional HTTP/2 support (open sourve version of the commercial LiteSpeed Web Server). Sources.

httpvhost.cpp  (openlitespeed-1.6.3.src.tgz):httpvhost.cpp  (openlitespeed-1.6.4.src.tgz)
skipping to change at line 2456 skipping to change at line 2456
if (code == -1) if (code == -1)
{ {
LS_WARN(ConfigCtx::getCurConfigCtx(), LS_WARN(ConfigCtx::getCurConfigCtx(),
"Invalid status code %d, use default: 302!", "Invalid status code %d, use default: 302!",
orgCode); orgCode);
code = SC_302; code = SC_302;
} }
} }
} }
if ((code == -1) && (code >= SC_300) && (code < SC_400)) if ((code == -1) || ((code >= SC_300) && (code < SC_400)))
{ {
if ((pLocation == NULL) || (*pLocation == 0)) if ((pLocation == NULL) || (*pLocation == 0))
{ {
LS_ERROR(ConfigCtx::getCurConfigCtx(), LS_ERROR(ConfigCtx::getCurConfigCtx(),
"Destination URI must be specified!"); "Destination URI must be specified!");
return LS_FAIL; return LS_FAIL;
} }
} }
return 0; return 0;
skipping to change at line 2514 skipping to change at line 2514
if (match) if (match)
defLocation.setStr("$DOC_ROOT$0"); defLocation.setStr("$DOC_ROOT$0");
else else
{ {
defLocation.setStr("$DOC_ROOT"); defLocation.setStr("$DOC_ROOT");
defLocation.append(pUri, strlen(pUri)); defLocation.append(pUri, strlen(pUri));
} }
pLocation = defLocation.c_str(); pLocation = defLocation.c_str();
} }
else if (*pLocation != '$' && *pLocation != '/' ) else if (*pLocation != '$' && *pLocation != '/' &&
type != HandlerType::HT_REDIRECT )
{ {
defLocation.setStr("$DOC_ROOT/"); defLocation.setStr("$DOC_ROOT/");
defLocation.append(pLocation, strlen(pLocation)); defLocation.append(pLocation, strlen(pLocation));
pLocation = defLocation.c_str(); pLocation = defLocation.c_str();
} }
pHandler = pContextNode->getChildValue("handler"); pHandler = pContextNode->getChildValue("handler");
char achHandler[256] = {0}; char achHandler[256] = {0};
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)