From fd3f187810b9ed19b4ddfe6ab68fa636dd7c3242 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 17 Apr 2024 14:01:17 +0000 Subject: [PATCH] Set Accept: */* HTTP header like it was done in ftp(1). OK tb@ job@ --- usr.sbin/rpki-client/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/rpki-client/http.c b/usr.sbin/rpki-client/http.c index c066ef07554..fdf57974f38 100644 --- a/usr.sbin/rpki-client/http.c +++ b/usr.sbin/rpki-client/http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: http.c,v 1.82 2024/03/22 03:38:12 job Exp $ */ +/* $OpenBSD: http.c,v 1.83 2024/04/17 14:01:17 claudio Exp $ */ /* * Copyright (c) 2020 Nils Fisher * Copyright (c) 2020 Claudio Jeker @@ -1221,6 +1221,7 @@ http_request(struct http_connection *conn) if ((r = asprintf(&conn->buf, "GET /%s HTTP/1.1\r\n" "Host: %s\r\n" + "Accept: */*\r\n" "Accept-Encoding: gzip, deflate\r\n" "User-Agent: " HTTP_USER_AGENT "\r\n" "%s\r\n", -- 2.20.1