Closed cawoodm closed 2 years ago
Setup:
The path separator \ for windows is inconsistently applied in serveStatic.ts and send.ts. In particular hasTrailingSlash() assumes / whereas the path which has been normalize() contains (and may end with) \.
\
serveStatic.ts
send.ts
hasTrailingSlash()
/
normalize()
Hey @cawoodm 👋
I think I've released a fix for this, but could have missed somewhere! Would you be able to check if you still have the same issues with opine@2.0.2?
opine@2.0.2
Issue
Setup:
Details
The path separator
\
for windows is inconsistently applied inserveStatic.ts
andsend.ts
. In particularhasTrailingSlash()
assumes/
whereas the path which has beennormalize()
contains (and may end with)\
.