http_client.c: check expected content type only if HTTP status code is 200 (OK)
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Thu, 28 Apr 2022 13:35:13 +0000 (15:35 +0200)
committerDr. David von Oheimb <dev@ddvo.net>
Mon, 2 May 2022 06:22:31 +0000 (08:22 +0200)
commite3477d3e5ccd971da3d8a90a7d5096b47372d288
tree18120d8c89251bb20eeaa0829b3363ef81c42ad0
parent2d96bfd957149e491feba55a3d04afb26b2668b5
http_client.c: check expected content type only if HTTP status code is 200 (OK)

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/18204)
crypto/http/http_client.c