Skip to content

Commit 4359f43

Browse files
committed
refactor(core): replace add with setContentType in Request.Builder for header consistency
1 parent 03c448c commit 4359f43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • core/src/main/java/com/predic8/membrane/core/http

core/src/main/java/com/predic8/membrane/core/http/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public Builder header(String headerName, String headerValue) {
257257
}
258258

259259
public Builder contentType(String value) {
260-
req.getHeader().add(CONTENT_TYPE, value);
260+
req.getHeader().setContentType( value);
261261
return this;
262262
}
263263

0 commit comments

Comments
 (0)