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:24:02 +0000 (08:24 +0200)
commit07982ebe99c74642402c8065bb2479fb8a6ac13d
tree3fc841a2d3537a42e42a575ae8ec863e44925007
parent6c49fdde69fac71a0bc48299c126ca2b1f1e36a3
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)

(cherry picked from commit e3477d3e5ccd971da3d8a90a7d5096b47372d288)
crypto/http/http_client.c