fix: params not sent with http request

This commit is contained in:
Victor Westerlund 2024-04-02 13:57:09 +02:00
parent b33a0e4979
commit 71b736f02e

View file

@ -63,7 +63,7 @@
]
]);
$resp = file_get_contents($this->base_url . $this->endpoint, false, $context);
$resp = file_get_contents(implode("", [$this->base_url, $this->endpoint, $this->params]), false, $context);
// Get HTTP response code from $http_response_header which materializes out of thin air after file_get_contents().
// The first header line and second word will contain the status code.