Adjust HTTP client code a bit. Add support for 304 Not Modified responses,
authorclaudio <claudio@openbsd.org>
Thu, 25 Mar 2021 12:18:45 +0000 (12:18 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 25 Mar 2021 12:18:45 +0000 (12:18 +0000)
commit09b708f572d76de8db7f7948ea7359b19bbd1c5a
tree7cff0d0d416cfe6a11ce5015caa0768a881ab901
parent8de5ec0a5e056d7e00e6507516ae0f40330eb178
Adjust HTTP client code a bit. Add support for 304 Not Modified responses,
remove handling of 206 Partial Content (the client does not use range
headers). Report the Last-Modified timestamp back to the requestor and
switch OK to a enum value for (FAIL, OK and NOT MODIFIED).
OK tb@
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/http.c
usr.sbin/rpki-client/main.c