File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,9 @@ export abstract class Server {
218218 switch ( base ) {
219219 case "/" :
220220 this . ensureGet ( request ) ;
221- if ( ! this . authenticate ( request ) ) {
221+ if ( requestPath === "/favicon.ico" ) {
222+ return this . getResource ( path . join ( this . rootPath , "/out/vs/server/src/favicon" , requestPath ) ) ;
223+ } else if ( ! this . authenticate ( request ) ) {
222224 return { redirect : "https://" + request . headers . host + "/login" } ;
223225 }
224226 break ;
@@ -231,9 +233,6 @@ export abstract class Server {
231233 }
232234 this . ensureGet ( request ) ;
233235 return this . getResource ( path . join ( this . rootPath , "/out/vs/server/src/login" , requestPath ) ) ;
234- case "/favicon.ico" :
235- this . ensureGet ( request ) ;
236- return this . getResource ( path . join ( this . rootPath , "/out/vs/server/src/favicon" , base ) ) ;
237236 default :
238237 this . ensureGet ( request ) ;
239238 if ( ! this . authenticate ( request ) ) {
You can’t perform that action at this time.
0 commit comments