diff --git a/.github/workflows/dev-stg-release.yml b/.github/workflows/dev-stg-release.yml index 002b568..3af5525 100644 --- a/.github/workflows/dev-stg-release.yml +++ b/.github/workflows/dev-stg-release.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@2201.5.0 + uses: ballerina-platform/ballerina-action/@2201.8.4 with: args: pack ./ballerina @@ -28,7 +28,7 @@ jobs: - name: Push to Staging if: github.event.inputs.bal_central_environment == 'STAGE' - uses: ballerina-platform/ballerina-action/@2201.7.1 + uses: ballerina-platform/ballerina-action/@2201.8.4 with: args: push @@ -38,7 +38,7 @@ jobs: - name: Push to Dev if: github.event.inputs.bal_central_environment == 'DEV' - uses: ballerina-platform/ballerina-action/@2201.7.1 + uses: ballerina-platform/ballerina-action/@2201.8.4 with: args: push diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e46c1ca..dfb6614 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,14 +10,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@2201.7.1 + uses: ballerina-platform/ballerina-action/@2201.8.4 with: args: pack env: WORKING_DIR: ./ballerina - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@2201.7.1 + uses: ballerina-platform/ballerina-action/@2201.8.4 with: args: push diff --git a/ballerina/http_utils.bal b/ballerina/http_utils.bal index 2f7eda9..3a8fe3c 100644 --- a/ballerina/http_utils.bal +++ b/ballerina/http_utils.bal @@ -254,7 +254,7 @@ isolated function extractResponsePayload(string path, http:Response response) re if contentLength is error { return error HttpResponseParsingError("Error occurred while extracting content length from the response.", contentLength); } - if contentLength == 0 { + if contentLength is () || contentLength == 0 { return { code, path,