You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2019/02/06 15:41:34 UTC

[openmeetings] branch 4.0.x updated: [OPENMEETINGS-2012] bearer in Authorization header is camel case now

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/4.0.x by this push:
     new 1903756  [OPENMEETINGS-2012] bearer in Authorization header is camel case now
1903756 is described below

commit 19037567323f07ae3e2656b2f6f83ad5ab579f8f
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Wed Feb 6 22:41:21 2019 +0700

    [OPENMEETINGS-2012] bearer in Authorization header is camel case now
---
 .../main/java/org/apache/openmeetings/web/pages/auth/SignInPage.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/auth/SignInPage.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/auth/SignInPage.java
index ecc34b4..61b3537 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/auth/SignInPage.java
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/auth/SignInPage.java
@@ -273,7 +273,7 @@ public class SignInPage extends BaseInitedPage {
 		// send request
 		HttpURLConnection connection = (HttpURLConnection) new URL(requestInfoUrl).openConnection();
 		if (server.getRequestInfoMethod() == RequestInfoMethod.HEADER) {
-			connection.setRequestProperty("Authorization", String.format("bearer %s", authInfo.accessToken));
+			connection.setRequestProperty("Authorization", String.format("Bearer %s", authInfo.accessToken));
 		} else {
 			connection.setRequestMethod(server.getRequestInfoMethod().name());
 		}