Skip to content

Commit 4e94dbb

Browse files
authored
Add a comment referencing the implementation of query string conversion
1 parent 7e245fc commit 4e94dbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ public LowLevelHttpResponse execute() {
277277

278278
// return licenses only if format=full is set
279279
if (queryPairs.containsKey("licenses")) {
280+
// The metadata server defaults to false and matches "on", "off" and ::absl::SimpleAtob.
281+
// See https://abseil.io/docs/cpp/guides/strings#numericConversion for more information.
280282
if (BOOL_PARAMETER_VALUE.matcher((String) queryPairs.get("licenses")).matches()) {
281283
return new MockLowLevelHttpRequest(url) {
282284
@Override

0 commit comments

Comments
 (0)