File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class CoCreateFileSystem {
4444 let pathname = valideUrl . pathname ;
4545 if ( pathname . endsWith ( '/' ) ) {
4646 pathname += "index.html" ;
47- } else {
47+ } else if ( ! pathname . startsWith ( '/.well-known/acme-challenge' ) ) {
4848 let directory = pathname . split ( "/" ) . slice ( - 1 ) [ 0 ] ;
4949 if ( ! directory . includes ( '.' ) )
5050 pathname += "/index.html" ;
@@ -107,8 +107,9 @@ class CoCreateFileSystem {
107107 }
108108
109109
110- if ( file . modified || file . created ) {
111- let modifiedOn = file . modified . on || file . created . on
110+ let modifiedOn = file . modified || file . created
111+ if ( modifiedOn ) {
112+ modifiedOn = modifiedOn . on
112113 if ( modifiedOn instanceof Date )
113114 modifiedOn = modifiedOn . toISOString ( )
114115 res . setHeader ( 'Last-Modified' , modifiedOn ) ;
You can’t perform that action at this time.
0 commit comments