summaryrefslogtreecommitdiff
path: root/sample/http-server.c
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2013-08-13 18:19:50 +0400
committerAzat Khuzhin <a3at.mail@gmail.com>2013-08-13 18:19:50 +0400
commit6171e1c2942361979feea768240605bb81d0566c (patch)
tree66fa2422865cb32676b9eaa40b7a6afc58d83b6a /sample/http-server.c
parent1c06985a01230102783ffa1fdc8528f75e48ef4f (diff)
downloadlibevent-6171e1c2942361979feea768240605bb81d0566c.tar.gz
sample: drop uri_root from base_url in http-server.
By default there is "0.0.0.0", and this address will work only from the same machine, and besides there is no need in uri_root in base_url, because it will be added automatically by browser.
Diffstat (limited to 'sample/http-server.c')
-rw-r--r--sample/http-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/http-server.c b/sample/http-server.c
index 502c45e2..1cb89bc9 100644
--- a/sample/http-server.c
+++ b/sample/http-server.c
@@ -248,13 +248,13 @@ send_document_cb(struct evhttp_request *req, void *arg)
evbuffer_add_printf(evb, "<html>\n <head>\n"
" <title>%s</title>\n"
- " <base href='%s%s%s'>\n"
+ " <base href='%s%s'>\n"
" </head>\n"
" <body>\n"
" <h1>%s</h1>\n"
" <ul>\n",
decoded_path, /* XXX html-escape this. */
- uri_root, path, /* XXX html-escape this? */
+ path, /* XXX html-escape this? */
trailing_slash,
decoded_path /* XXX html-escape this */);
#ifdef _WIN32