Skip to content

Commit 9728ae7

Browse files
committed
docs(README): Clarify default headers instructions
1 parent 89c2e6b commit 9728ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ The example below sends the `X-Watson-Learning-Opt-Out` header in every request
309309
PersonalityInsights service = new PersonalityInsights("2016-10-19");
310310

311311
Map<String, String> headers = new HashMap<String, String>();
312-
headers.put(HttpHeaders.X_WATSON_LEARNING_OPT_OUT, 1);
312+
headers.put(HttpHeaders.X_WATSON_LEARNING_OPT_OUT, "true");
313313

314314
service.setDefaultHeaders(headers);
315315

0 commit comments

Comments
 (0)