Fix syntax for RequestEntity headers example in ref docs
Closes gh-26876
This commit is contained in:
@@ -163,7 +163,7 @@ You can use the `exchange()` methods to specify request headers, as the followin
|
||||
URI uri = UriComponentsBuilder.fromUriString(uriTemplate).build(42);
|
||||
|
||||
RequestEntity<Void> requestEntity = RequestEntity.get(uri)
|
||||
.header(("MyRequestHeader", "MyValue")
|
||||
.header("MyRequestHeader", "MyValue")
|
||||
.build();
|
||||
|
||||
ResponseEntity<String> response = template.exchange(requestEntity, String.class);
|
||||
|
||||
Reference in New Issue
Block a user