apitte
apitte copied to clipboard
Request header parameter fix
Header request parameter "X-Auth-Token" should be provided.
$request->getHeaders()
return headers names with upper letters (e.g. X-Auth-Token
) and condition on line 135 (https://github.com/contributte/apitte/blob/master/src/Mapping/RequestParameterMapping.php#L135) is false becouse $headerParameterName
always contains parameter name (e.g. x-auth-token
) with lower letters. Therefore, I converted everything to lowercase.
Nice. Can you please add some tests?
Added test containing header name in uppercase and lowercase letters
@f3l1x Can you help me with failed static analysis under php 8.0?
Can you please rebase it? I think it will be OK.
Can you rebase it @miranovy?
Resolved via https://github.com/contributte/apitte/pull/188