We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5649c0 commit ca0263fCopy full SHA for ca0263f
src/main/java/org/springframework/hateoas/client/Hop.java
@@ -95,8 +95,7 @@ public Hop withParameter(String name, Object value) {
95
*/
96
public Hop header(String headerName, String headerValue) {
97
98
- Assert.notNull(headerName, "headerName must not be null!");
99
- Assert.notNull(headerValue, "headerValue must not be null!");
+ Assert.hasText(headerName, "headerName must not be null or empty!");
100
101
if (this.headers == HttpHeaders.EMPTY) {
102
0 commit comments