Skip to content

Commit

Permalink
Merge pull request #43 from nadheesh/main
Browse files Browse the repository at this point in the history
Fix issue with 204 response parsing
  • Loading branch information
SasinduDilshara committed Feb 6, 2024
2 parents d7dd846 + 0259254 commit 41f1310
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dev-stg-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ballerina/http_utils.bal
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 41f1310

Please sign in to comment.