@@ -192,7 +192,7 @@ public void AddRouteFolderWithFiles(string path, string folderPath, bool ignoreC
192192 {
193193 string file = folderPath + ServerRequest . path . Substring ( path . Length + 1 ) . Replace ( "/" , "\\ " ) ;
194194 //Logger.Log(file);
195- if ( QPWebserver . DoesAssetExist ( file ) ) ServerRequest . SendFile ( file ) ;
195+ if ( QAVSWebserver . DoesAssetExist ( file ) ) ServerRequest . SendFile ( file ) ;
196196 else ServerRequest . Send404 ( ) ;
197197 return true ;
198198 } ) , true , ignoreCase , ignoreEnd ) ;
@@ -442,22 +442,22 @@ public void SendString(string str, string contentType = "text/plain", int status
442442
443443 public void SendFile ( string file , string contentType = "" , int statusCode = 200 , bool closeRequest = true , Dictionary < string , string > headers = null )
444444 {
445- if ( ! QPWebserver . DoesAssetExist ( file ) )
445+ if ( ! QAVSWebserver . DoesAssetExist ( file ) )
446446 {
447447 Send404 ( ) ;
448448 return ;
449449 }
450- SendData ( QPWebserver . GetAssetBytes ( file ) , contentType == "" ? HttpServer . GetContentTpe ( file ) : contentType , Encoding . UTF8 , statusCode , closeRequest , headers ) ;
450+ SendData ( QAVSWebserver . GetAssetBytes ( file ) , contentType == "" ? HttpServer . GetContentTpe ( file ) : contentType , Encoding . UTF8 , statusCode , closeRequest , headers ) ;
451451 }
452452
453453 public void SendFile ( string file , Dictionary < string , string > replace , string contentType = "" , int statusCode = 200 , bool closeRequest = true , Dictionary < string , string > headers = null )
454454 {
455- if ( ! QPWebserver . DoesAssetExist ( file ) )
455+ if ( ! QAVSWebserver . DoesAssetExist ( file ) )
456456 {
457457 Send404 ( ) ;
458458 return ;
459459 }
460- string toSend = QPWebserver . GetAssetString ( file ) ;
460+ string toSend = QAVSWebserver . GetAssetString ( file ) ;
461461 foreach ( KeyValuePair < string , string > key in replace ) toSend = toSend . Replace ( key . Key , key . Value ) ;
462462 SendString ( toSend , contentType == "" ? HttpServer . GetContentTpe ( file ) : contentType , statusCode , closeRequest , headers ) ;
463463 }
0 commit comments