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 {
44
44
let pathname = valideUrl . pathname ;
45
45
if ( pathname . endsWith ( '/' ) ) {
46
46
pathname += "index.html" ;
47
- } else {
47
+ } else if ( ! pathname . startsWith ( '/.well-known/acme-challenge' ) ) {
48
48
let directory = pathname . split ( "/" ) . slice ( - 1 ) [ 0 ] ;
49
49
if ( ! directory . includes ( '.' ) )
50
50
pathname += "/index.html" ;
@@ -107,8 +107,9 @@ class CoCreateFileSystem {
107
107
}
108
108
109
109
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
112
113
if ( modifiedOn instanceof Date )
113
114
modifiedOn = modifiedOn . toISOString ( )
114
115
res . setHeader ( 'Last-Modified' , modifiedOn ) ;
You can’t perform that action at this time.
0 commit comments