diff --git a/src/gmni.c b/src/gmni.c

index 1c3e5f2bebddf5b606d11acd8924562cabde9a6f..49abb8524a012c27249006dc45f4688a846e63c3 100644

--- a/src/gmni.c

+++ b/src/gmni.c

@@ -14,6 +14,7 @@ #include <termios.h>

#include <unistd.h>

#include <gmni/gmni.h>

#include <gmni/tofu.h>

+#include <gmni/url.h>

#include "util.h"

static void

@@ -227,12 +228,24 @@ opts.ssl_ctx = SSL_CTX_new(TLS_method());

gemini_tofu_init(&cfg.tofu, opts.ssl_ctx, &tofu_callback, &cfg);

bool exit = false;

int ret = 0, nredir = 0;

while (!exit) {

	struct gemini_response resp;

	if (r != GEMINI_OK) {

		fprintf(stderr, "Error: %s\n", gemini_strerr(r, &resp));

		ret = (int)r;

@@ -254,12 +267,16 @@ exit = true;

			break;

		}

		assert(new_url);

		free(input);

		goto next;

	case GEMINI_STATUS_CLASS_REDIRECT:

		if (++nredir >= max_redirect) {

@@ -270,8 +287,8 @@ exit = true;

			goto next;

		}

		if (!follow_redirects) {

			if (header_mode == OMIT_HEADERS) {

				fprintf(stderr, "REDIRECT: %d %s\n",

@@ -311,7 +328,12 @@ break;

		}

		if (output_file != NULL) {

			break;

		}

@@ -349,7 +371,7 @@ gemini_response_finish(&resp);

}

SSL_CTX_free(opts.ssl_ctx);

gemini_tofu_finish(&cfg.tofu);

return ret;

}

Proxy Information
Original URL
gemini://gmn.clttr.info/sources/cgmnlm.git/commits/d8f0870446c471a42612d6a8e853ad9b723a6d39.patch
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
139.202095 milliseconds
Gemini-to-HTML Time
1.12902 milliseconds

This content has been proxied by September (ba2dc).