mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-27 12:49:01 +08:00
Add unicode filename
This commit is contained in:
parent
0d5d7bb26f
commit
a771d6a19d
1
test/data/київ.txt
Normal file
1
test/data/київ.txt
Normal file
@ -0,0 +1 @@
|
||||
є
|
@ -488,6 +488,10 @@ static void test_http_server(void) {
|
||||
ASSERT(fetch(&mgr, buf, url, "GET /no_reason HTTP/1.0\n\n") == 200);
|
||||
ASSERT(cmpbody(buf, "ok") == 0);
|
||||
|
||||
// Fetch file with unicode chars in filename
|
||||
ASSERT(fetch(&mgr, buf, url, "GET /київ.txt HTTP/1.0\n\n") == 200);
|
||||
ASSERT(cmpbody(buf, "є\n") == 0);
|
||||
|
||||
{
|
||||
extern char *mg_http_etag(char *, size_t, mg_stat_t *);
|
||||
char etag[100];
|
||||
|
Loading…
Reference in New Issue
Block a user