Skip to content

Commit

Permalink
Modify based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
Thevakumar-Luheerathan committed Sep 16, 2022
1 parent bba1e95 commit 792759b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ballerina-tests/tests/resources/httpHeaderTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"12, 13, 14"
],
"Hos":[

""
],
"X-ARR-LOG-ID":[
"77ef8e37-520e-417b-a972-30746b719b60"
Expand Down Expand Up @@ -97,6 +97,7 @@
"Max-Forwards":"10",
"User-Agent":"ballerina",
"test":"12, 13, 14",
"Hos": "",
"X-ARR-LOG-ID":"77ef8e37-520e-417b-a972-30746b719b60",
"CLIENT-IP":"45.121.88.92:53880",
"DISGUISED-HOST":"az-func-http-test.azurewebsites.net",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ private Object getHeaderValue(BMap<BString, ?> headers, Type type, String fieldN
return null;
}
throw new HeaderNotFoundException("no header value found for '" + fieldName + "'");
} else if (headerValue == null) {
} else if (headerValue.getValue().equals("")) {
//Handle header value not exist case
if (isNilType(type)) {
return null;
Expand Down

0 comments on commit 792759b

Please sign in to comment.