Skip to content

Commit 7110b07

Browse files
authored
[web-pubsub-express] fix Event Handler erroneous behavior due to ce-hub header not preserving case (Azure#22136)
Compare the Hub name in a case insensitive fashion.
1 parent 098abbd commit 7110b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/web-pubsub/web-pubsub-express/src/cloudEventsDispatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export class CloudEventsDispatcher {
241241

242242
// check if hub matches
243243
const hub = utils.getHttpHeader(request, "ce-hub");
244-
if (hub !== this.hub) {
244+
if (hub?.toUpperCase() !== this.hub.toUpperCase()) {
245245
return false;
246246
}
247247

0 commit comments

Comments
 (0)