allow unescape of nothing
parent
8d62ce5f29
commit
5b5f989f6b
|
@ -82,6 +82,9 @@ function handle_connection(f, server, init_context, io, verbose)
|
||||||
f(GeminiRequest(Connection(server, client),
|
f(GeminiRequest(Connection(server, client),
|
||||||
Request(String(client.context.data)),
|
Request(String(client.context.data)),
|
||||||
Dict()))
|
Dict()))
|
||||||
|
@info "Inside close"
|
||||||
|
close(client)
|
||||||
|
@info "Inside close done"
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -84,6 +84,8 @@ function Request(protocol, host, port, path, query)
|
||||||
path, query, true, "")
|
path, query, true, "")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
unescape(::Nothing) = ""
|
||||||
|
|
||||||
"unescape(percent_encoded_uri)::String
|
"unescape(percent_encoded_uri)::String
|
||||||
|
|
||||||
Replace %xx escaped chars with their single-character equivalent.
|
Replace %xx escaped chars with their single-character equivalent.
|
||||||
|
|
Loading…
Reference in New Issue