artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bb5895
)
Set Accept: */* HTTP header like it was done in ftp(1).
author
claudio
<claudio@openbsd.org>
Wed, 17 Apr 2024 14:01:17 +0000
(14:01 +0000)
committer
claudio
<claudio@openbsd.org>
Wed, 17 Apr 2024 14:01:17 +0000
(14:01 +0000)
OK tb@ job@
usr.sbin/rpki-client/http.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rpki-client/http.c
b/usr.sbin/rpki-client/http.c
index
c066ef0
..
fdf5797
100644
(file)
--- a/
usr.sbin/rpki-client/http.c
+++ b/
usr.sbin/rpki-client/http.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: http.c,v 1.8
2 2024/03/22 03:38:12 job
Exp $ */
+/* $OpenBSD: http.c,v 1.8
3 2024/04/17 14:01:17 claudio
Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
@@
-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",