Skip to content

fail to search for index in directory with directory name containing CJK characters #3008

Open
@wh-timme

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

file path:
./public/hello/你好/index.html
will return 404 when accessing to http://serving_domain/hello/你好

Code snippet

app.static('/', './public', index='index.html')

Expected Behavior

redirect to ./public/hello/你好/index.html instead of 404 page

How do you run Sanic?

As a script (app.run or Sanic.serve)

Operating System

Linux

Sanic Version

24.6.0

Additional context

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions