diff --git a/src/Http_Worker.c b/src/Http_Worker.c index a0bf98a8a..53ece16cf 100644 --- a/src/Http_Worker.c +++ b/src/Http_Worker.c @@ -484,6 +484,8 @@ static void HttpCache_MakeEntry(const cc_string* url, struct HttpCacheEntry* ent String_UNSAFE_Separate(&path, '/', &addr, &_resource); String_UNSAFE_Separate(&addr, ':', &name, &port); + + String_Append(resource, '/'); /* Address may have unicode characters - need to percent encode them */ HttpCache_UrlEncodeUrl(resource, &_resource);