forked from loafle/openapi-generator-original
fix default header
This commit is contained in:
parent
8d708c2442
commit
f357f4c9d7
@ -182,13 +182,10 @@ class APIClient {
|
|||||||
$this->updateParamsForAuth($headerParams, $queryParams, $authSettings);
|
$this->updateParamsForAuth($headerParams, $queryParams, $authSettings);
|
||||||
|
|
||||||
# construct the http header
|
# construct the http header
|
||||||
if ($headerParams !== null) {
|
$headerParams = array_merge((array)self::$default_header, (array)$headerParams);
|
||||||
# add default header
|
|
||||||
$headerParams = array_merge((array)self::$default_header, $headerParams);
|
|
||||||
|
|
||||||
foreach ($headerParams as $key => $val) {
|
foreach ($headerParams as $key => $val) {
|
||||||
$headers[] = "$key: $val";
|
$headers[] = "$key: $val";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// form data
|
// form data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user