fix: params not sent with http requests (#9)

This commit is contained in:
Victor Westerlund 2024-04-02 12:02:36 +00:00 committed by GitHub
parent b33a0e4979
commit 0110ac1c04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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.