diff options
Diffstat (limited to 'contrib/ntp/sntp/libevent/sample/http-server.c')
-rw-r--r-- | contrib/ntp/sntp/libevent/sample/http-server.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/ntp/sntp/libevent/sample/http-server.c b/contrib/ntp/sntp/libevent/sample/http-server.c index 1cb89bc..cbb9c91 100644 --- a/contrib/ntp/sntp/libevent/sample/http-server.c +++ b/contrib/ntp/sntp/libevent/sample/http-server.c @@ -246,7 +246,10 @@ send_document_cb(struct evhttp_request *req, void *arg) goto err; #endif - evbuffer_add_printf(evb, "<html>\n <head>\n" + evbuffer_add_printf(evb, + "<!DOCTYPE html>\n" + "<html>\n <head>\n" + " <meta charset='utf-8'>\n" " <title>%s</title>\n" " <base href='%s%s'>\n" " </head>\n" @@ -274,7 +277,7 @@ send_document_cb(struct evhttp_request *req, void *arg) #endif evbuffer_add_printf(evb, "</ul></body></html>\n"); #ifdef _WIN32 - CloseHandle(d); + FindClose(d); #else closedir(d); #endif |