uri -> url

This commit is contained in:
Emil Mikulic
2011-04-16 18:52:53 +10:00
parent 597c81d3f1
commit 010d194180
3 changed files with 62 additions and 62 deletions

View File

@ -63,7 +63,7 @@ class TestCases(unittest.TestCase):
self.assertContains(body,
"<title>400 Bad Request</title>",
"<h1>Bad Request</h1>\n",
"You requested an invalid URI: %s\n"%path,
"You requested an invalid URL: %s\n"%path,
'Generated by darkhttpd')
def nerf(s):

View File

@ -6,7 +6,7 @@ static void
test(const char *input, const char *expected)
{
char *tmp = xstrdup(input);
char *out = make_safe_uri(tmp);
char *out = make_safe_url(tmp);
if (expected == NULL) {
if (out == NULL)