Skip to content

Commit 1b07549

Browse files
author
sgonzalezMSFT
committed
Update how multi-valued headers are handled
1 parent 4154127 commit 1b07549

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/com/microsoft/aad/msal4j/HttpHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static IHttpResponse executeHttpRequest(final HttpRequest httpRequest,
3333
httpResponse = httpClient.send(httpRequest);
3434
} catch(Exception e){
3535
httpEvent.setOauthErrorCode(AuthenticationErrorCode.UNKNOWN);
36-
throw new MsalException(e);
36+
throw new MsalClientException(e);
3737
}
3838

3939
addResponseInfoToTelemetry(httpResponse, httpEvent);

src/main/java/com/microsoft/aad/msal4j/HttpUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ static String headerValue(Map<String, List<String>> headers, String headerName){
2020
return null;
2121
}
2222

23-
return headerValue.get(0);
23+
return String.join(",", headerValue);
2424
}
2525
}

src/main/java/com/microsoft/aad/msal4j/IHttpClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
public interface IHttpClient {
1111

1212
/**
13-
* Should implement execution of outgoing http request with http client of choice. Adapts
14-
* response returned from http client to {@link IHttpResponse}
13+
* Should implement execution of outgoing HTTP request with HTTP client of choice. Adapts
14+
* response returned from HTTP client to {@link IHttpResponse}
1515
* @param httpRequest {@link HttpRequest}
1616
* @return {@link IHttpResponse}.
1717
* @throws Exception Non-recoverable exception. Recoverable exceptions should be handled by the

0 commit comments

Comments
 (0)