From aba237b50383a65ceac3412ed7aaaa6493d92a82 Mon Sep 17 00:00:00 2001 From: Greg Moulds Date: Wed, 30 Aug 2023 08:39:26 -0400 Subject: [PATCH 1/2] [BCLOUD-5657] Fix for broken reconnect on session expired error --- pom.xml | 2 +- src/main/java/com/bitheads/brainclouds2s/BrainCloudS2S.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 763b710..e7a437a 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.bitheads brainclouds2s - 4.15.0 + 4.15.1 jar brainCloud S2S Java The Java library for brainCloud S2S diff --git a/src/main/java/com/bitheads/brainclouds2s/BrainCloudS2S.java b/src/main/java/com/bitheads/brainclouds2s/BrainCloudS2S.java index a6b0a7a..04f312d 100644 --- a/src/main/java/com/bitheads/brainclouds2s/BrainCloudS2S.java +++ b/src/main/java/com/bitheads/brainclouds2s/BrainCloudS2S.java @@ -425,7 +425,7 @@ private void sendRawRequest(JSONObject jsonRequest, IS2SCallback callback) { synchronized(_lock) { try { _responseCode = connection.getResponseCode(); - if (_responseCode == HttpURLConnection.HTTP_OK) { + if (_responseCode == HttpURLConnection.HTTP_OK || _responseCode == HttpURLConnection.HTTP_FORBIDDEN) { _jsonResponse = new JSONObject(responseBody); } else { From 25b4e13e0cc2f074da155e7de3e6996ef02e2efd Mon Sep 17 00:00:00 2001 From: Greg Moulds Date: Wed, 30 Aug 2023 16:47:05 -0400 Subject: [PATCH 2/2] [BCLOUD-5684] Updated readme to indicate maven central availability --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c995e46..58e606b 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,17 @@ More detail can be found here: [https://getbraincloud.com/]() This library provides a simple API for server-to-server communications with brainCloud. +## Using +Starting with version 4.14.1, all releases are now available on Maven Central. Add the following to your pom.xml file: + +``` + + com.bitheads + brainclouds2s + 4.15.1 + +``` + ## Building clone the repo.