aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gmid.c b/gmid.c
index 0c1bed2..fca2ef6 100644
--- a/gmid.c
+++ b/gmid.c
@@ -600,6 +600,13 @@ handle(struct pollfd *fds, struct client *client)
return;
}
+ if (strcmp(iri.schema, "gemini")) {
+ if (!start_reply(fds, client, PROXY_REFUSED, "won't proxy request"))
+ return;
+ goodbye(fds, client);
+ return;
+ }
+
LOGI(client, "GET %s%s%s",
*iri.path ? iri.path : "/",
*iri.query ? "?" : "",