Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Nov 6, 2023
1 parent 8a549b7 commit df61f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public DPResponse updateCart(AzurePetStoreSessionInfo azurePetStoreSessionInfo,

dpResponse.setDpResponseText("I just added the "
+ this.cosmosDB.getCachedProducts().get(productId).getName()
+ " to your cart. "+azurePetStoreSessionInfo.getSessionID()+"|"+azurePetStoreSessionInfo.getCsrfToken());
+ " to your cart.");

dpResponse.setUpdateCart(true);
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static String cleanDataFromAOAIResponseContent(String content) {
public static AzurePetStoreSessionInfo getAzurePetStoreSessionInfo(String text) {
AzurePetStoreSessionInfo azurePetStoreSessionInfo = null;

Pattern pattern = Pattern.compile("sid=(.*)csrf=(.*)");
Pattern pattern = Pattern.compile("sid=(.*)&csrf=(.*)");
Matcher matcher = pattern.matcher(text);
if (matcher.find()) {
String sessionID = matcher.group(1);
Expand Down

0 comments on commit df61f40

Please sign in to comment.