allow unescape of nothing

This commit is contained in:
nixo 2020-11-02 17:37:48 +01:00
parent 8d62ce5f29
commit 5b5f989f6b
2 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,9 @@ function handle_connection(f, server, init_context, io, verbose)
f(GeminiRequest(Connection(server, client),
Request(String(client.context.data)),
Dict()))
@info "Inside close"
close(client)
@info "Inside close done"
break
end
end

View File

@ -84,6 +84,8 @@ function Request(protocol, host, port, path, query)
path, query, true, "")
end
unescape(::Nothing) = ""
"unescape(percent_encoded_uri)::String
Replace %xx escaped chars with their single-character equivalent.