allow unescape of nothing
This commit is contained in:
parent
8d62ce5f29
commit
5b5f989f6b
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue