summary refs log tree commit diff
path: root/nav.c
diff options
context:
space:
mode:
Diffstat (limited to 'nav.c')
-rw-r--r--nav.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nav.c b/nav.c
index 59fdca6..8f1d699 100644
--- a/nav.c
+++ b/nav.c
@@ -98,17 +98,18 @@ void nav_redraw(struct nav_state *ns) {
 /* network */
 
 int nav_to(struct nav_state *ns, const char *url) {
+	enum doc_type doct;
 	struct addr adr;
 	buf_t buf;
 	if (net_addr(url, &adr, ns->prot_default)) {
 		return -1;
 	}
 	ns->prot_default = adr.prot;
-	if (net_fetch(&adr, &buf)) {
+	if (net_fetch(&adr, &buf, &doct)) {
 		return -1;
 	}
 	struct doc d;
-	if (parse_doc(adr.type, &d, &buf)) {
+	if (parse_doc(doct, &d, &buf)) {
 		buf_free(&buf);
 		return -1;
 	}