Skip to content

Commit

Permalink
fix: add null string check (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
charan678 authored Feb 3, 2023
1 parent 489ab34 commit 97d07ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/twilio/http/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public void addHeaderParam(final String name, final String value) {
}

private void addParam(final Map<String, List<String>> params, final String name, final String value) {
if (value == null)
if (value == null || value == "null")
return;

if (!params.containsKey(name)) {
Expand Down

0 comments on commit 97d07ff

Please sign in to comment.