Skip to content

Commit

Permalink
add test for legacy Unirest to show behavior for issue #484
Browse files Browse the repository at this point in the history
  • Loading branch information
ryber committed Aug 2, 2023
1 parent ab20922 commit b3af1bb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unirest-bdd-tests/src/test/java/BehaviorTests/HeaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,15 @@ void nullTests() {
.assertHeader("foo","bar");
}

@Test
void nullValueTests() {
Unirest.get(MockServer.GET)
.header("foo", null)
.asObject(RequestCapture.class)
.getBody()
.assertHeader("foo","");
}

@Test
void replaceHeadersTests() {
Unirest.config().addDefaultHeader("foo", "default");
Expand Down

0 comments on commit b3af1bb

Please sign in to comment.