-
-
Couldn't load subscription status.
- Fork 116
Closed
Description
I was trying to do a a TV discovery request with air_date.gte and air_date.lte and was getting unexpected results.
Enabled logging and discovered that after ApiTokenRequestListener appending the API token (v3 query parameter style) the parameters that had a period had been converted to underscores (e.g. air_date_gte and air_date_lte) and the server was not understanding those parameters.
Specifically, RequestQueryHelper uses parse_str() which converts periods to underscores.
api/lib/Tmdb/Helper/RequestQueryHelper.php
Lines 41 to 51 in 0980c7d
| private function addQueryToUri(UriInterface $uri, $key, $value): UriInterface | |
| { | |
| $parameters = []; | |
| parse_str($uri->getQuery(), $parameters); | |
| $parameters[$key] = $value; | |
| ksort($parameters); | |
| return $uri->withQuery(http_build_query($parameters)); | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels