File tree 1 file changed +3
-4
lines changed
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 {
218
218
switch ( base ) {
219
219
case "/" :
220
220
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 ) ) {
222
224
return { redirect : "https://" + request . headers . host + "/login" } ;
223
225
}
224
226
break ;
@@ -231,9 +233,6 @@ export abstract class Server {
231
233
}
232
234
this . ensureGet ( request ) ;
233
235
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 ) ) ;
237
236
default :
238
237
this . ensureGet ( request ) ;
239
238
if ( ! this . authenticate ( request ) ) {
You can’t perform that action at this time.
0 commit comments