diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3a2cee8a..9725f1a4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
+## [1.2.1 - 2023-11-08]
+
+### Fixed
+
+- Fix bug in requestToExApp function introduced in previous release.
+
## [1.2.0 - 2023-11-08]
### Changed
diff --git a/appinfo/info.xml b/appinfo/info.xml
index c02428ba..262dad74 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -40,7 +40,7 @@ to join us in shaping a more versatile, stable, and secure app landscape.
*Your insights, suggestions, and contributions are invaluable to us.*
]]>
- 1.2.0
+ 1.2.1
agpl
Andrey Borysenko
Alexander Piskun
diff --git a/lib/Service/AppAPIService.php b/lib/Service/AppAPIService.php
index b2266e60..40359883 100644
--- a/lib/Service/AppAPIService.php
+++ b/lib/Service/AppAPIService.php
@@ -618,7 +618,7 @@ public function requestToExApp(
$exApp->getHost(),
$exApp->getPort()) . $route;
- if (is_array($options['headers'])) {
+ if (isset($options['headers']) && is_array($options['headers'])) {
$options['headers'] = [...$options['headers'], ...$this->buildAppAPIAuthHeaders($request, $userId, $exApp)];
} else {
$options['headers'] = $this->buildAppAPIAuthHeaders($request, $userId, $exApp);