Skip to content

Commit f7e7b20

Browse files
committed
fix
1 parent d796394 commit f7e7b20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SetInitialEventHttpMiddleware.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public function handle(Request $request, Closure $next): mixed
2222
$initialEvent = InitialEventDTO::fromScratch(
2323
userId: $user ? $user->getId() : "",
2424
userType: $user ? $mc['default_user_type'] : "",
25-
app: !empty($mc['app_code_header']) ? $request->header($mc['app_code_header']) : ($config['app_code'] ?? ''),
25+
app: !empty($mc['app_code_header']) ? $request->header($mc['app_code_header'], '') : ($config['app_code'] ?? ''),
2626
entrypoint: $this->extractEntrypoint($request),
27-
correlationId: !empty($mc['correlation_id_header']) ? $request->header($mc['correlation_id_header']) : '',
28-
timestamp: !empty($mc['timestamp_header']) ? $request->header($mc['timestamp_header']) : ''
27+
correlationId: !empty($mc['correlation_id_header']) ? $request->header($mc['correlation_id_header'], '') : '',
28+
timestamp: !empty($mc['timestamp_header']) ? $request->header($mc['timestamp_header'], '') : ''
2929
);
3030

3131
$holder->setInitialEvent($initialEvent);

0 commit comments

Comments
 (0)