diff --git a/Makefile b/Makefile index c74e475..d5b1f06 100644 --- a/Makefile +++ b/Makefile @@ -45,8 +45,8 @@ ifeq (, $(shell which deepcopy-gen)) endif start-replica: - podman run --pull always --name adguardhome-replica -p 9090:80 -p 9091:3000 --rm adguard/adguardhome -# podman run --pull always --name adguardhome-replica -p 9090:80 -p 9091:3000 --rm adguard/adguardhome:v0.107.13 + docker run --pull always --name adguardhome-replica -p 9090:80 -p 9091:3000 --rm adguard/adguardhome +# docker run --pull always --name adguardhome-replica -p 9090:80 -p 9091:3000 --rm adguard/adguardhome:v0.107.13 check_defined = \ $(strip $(foreach 1,$1, \ @@ -57,7 +57,7 @@ __check_defined = \ build-image: $(call check_defined, AGH_SYNC_VERSION) - podman build --build-arg VERSION=${AGH_SYNC_VERSION} --build-arg BUILD=$(shell date -u +'%Y-%m-%dT%H:%M:%S.%3NZ') --name adgardhome-replica -t ghcr.io/bakito/adguardhome-sync:${AGH_SYNC_VERSION} . + docker build --build-arg VERSION=${AGH_SYNC_VERSION} --build-arg BUILD=$(shell date -u +'%Y-%m-%dT%H:%M:%S.%3NZ') --name adgardhome-replica -t ghcr.io/bakito/adguardhome-sync:${AGH_SYNC_VERSION} . kind-create: kind delete cluster diff --git a/pkg/client/client.go b/pkg/client/client.go index 6c37bd9..c68fcef 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -147,7 +147,11 @@ func (cl *client) doGet(req *resty.Request, url string) error { rl.With("status", resp.StatusCode(), "body", string(resp.Body()), "error", err).Debug("error in do get") return detailedError(resp, err) } - rl.With("status", resp.StatusCode(), "body", string(resp.Body())).Debug("got response") + rl.With( + "status", resp.StatusCode(), + "body", string(resp.Body()), + "content-type", resp.Header()["Content-Type"], + ).Debug("got response") if resp.StatusCode() != http.StatusOK { return detailedError(resp, nil) }