mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +00:00
Add unicode filename
This commit is contained in:
1 parent
0d5d7bb26f
commit
a771d6a19d
2 files changed
+5
No files matched your search
@@ -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(fetch(&mgr, buf, url, "GET /no_reason HTTP/1.0\n\n") == 200);
|
||||||
ASSERT(cmpbody(buf, "ok") == 0);
|
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 *);
|
extern char *mg_http_etag(char *, size_t, mg_stat_t *);
|
||||||
char etag[100];
|
char etag[100];
|
||||||
|
|||||||
Reference in new issue
Block a user