1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Use headers API

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille
2024-05-30 10:02:55 +02:00
committed by Quentin Gliech
parent 683516bb66
commit fa0dec737b
2 changed files with 7 additions and 7 deletions

View File

@@ -452,8 +452,8 @@ pub enum UserInfoError {
DecodeResponseContentType(#[from] ToStrError),
/// The content-type is not valid.
#[error("invalid response content-type: {0}")]
InvalidResponseContentTypeValue(#[from] mime::FromStrError),
#[error("invalid response content-type")]
InvalidResponseContentTypeValue,
/// The content-type is not the one that was expected.
#[error("unexpected response content-type {got:?}, expected {expected:?}")]