Skip to content

Commit

Permalink
Copy additional parameters sent in the subscription request to the ve…
Browse files Browse the repository at this point in the history
…rified-subscription/verified-unsubscription record
  • Loading branch information
ayeshLK committed Sep 15, 2023
1 parent f22085f commit d6ce50b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 2 additions & 10 deletions ballerina/subscription.bal
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@ isolated function processSubscriptionVerification(http:Headers headers, HttpToWe
string respStringPayload = check subscriberResponse.getTextPayload();
if (respStringPayload == challenge) {
VerifiedSubscription verifiedMessage = {
hub: message.hub,
hubMode: message.hubMode,
hubCallback: message.hubCallback,
hubTopic: message.hubTopic,
hubLeaseSeconds: message.hubLeaseSeconds,
hubSecret: message.hubSecret
...message
};
check adaptor.callOnSubscriptionIntentVerifiedMethod(verifiedMessage, headers);
}
Expand Down Expand Up @@ -186,10 +181,7 @@ isolated function processUnSubscriptionVerification(http:Headers headers, HttpTo
string respStringPayload = check subscriberResponse.getTextPayload();
if (respStringPayload == challenge) {
VerifiedUnsubscription verifiedMessage = {
hubMode: message.hubMode,
hubCallback: message.hubCallback,
hubTopic: message.hubTopic,
hubSecret: message.hubSecret
...message
};
check adaptor.callOnUnsubscriptionIntentVerifiedMethod(verifiedMessage, headers);
}
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.9.1] - 2023-09-14

### Fixed
- [Additional parameters sent in the subscription request is not properly propagated into the `websubhub:VerifiedSubscription` message](https://github.com/ballerina-platform/ballerina-standard-library/issues/4800)

## [1.5.1] - 2023-03-16

### Fixed
Expand Down

0 comments on commit d6ce50b

Please sign in to comment.