You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2014/11/01 11:37:23 UTC

git commit: MARMOTTA-406: fixed typo on building http basic auth header

Repository: marmotta
Updated Branches:
  refs/heads/develop e17047295 -> b027ad098


MARMOTTA-406: fixed typo on building http basic auth header


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/b027ad09
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/b027ad09
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/b027ad09

Branch: refs/heads/develop
Commit: b027ad098f79c0e06453767b8169d65ff96cee5a
Parents: e170472
Author: Sergio Fernández <wi...@apache.org>
Authored: Sat Nov 1 10:23:44 2014 +0100
Committer: Sergio Fernández <wi...@apache.org>
Committed: Sat Nov 1 11:37:11 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/marmotta/client/util/HTTPUtil.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/b027ad09/client/marmotta-client-java/src/main/java/org/apache/marmotta/client/util/HTTPUtil.java
----------------------------------------------------------------------
diff --git a/client/marmotta-client-java/src/main/java/org/apache/marmotta/client/util/HTTPUtil.java b/client/marmotta-client-java/src/main/java/org/apache/marmotta/client/util/HTTPUtil.java
index 662b73d..be1ac1b 100644
--- a/client/marmotta-client-java/src/main/java/org/apache/marmotta/client/util/HTTPUtil.java
+++ b/client/marmotta-client-java/src/main/java/org/apache/marmotta/client/util/HTTPUtil.java
@@ -96,7 +96,7 @@ public class HTTPUtil {
         final HttpPost post = new HttpPost(uriBuilder.build());
 
         if (StringUtils.isNotBlank(config.getMarmottaUser()) && StringUtils.isNotBlank(config.getMarmottaUser())) {
-            final String credentials = String.format("%s;%s", config.getMarmottaUser(), config.getMarmottaPassword());
+            final String credentials = String.format("%s:%s", config.getMarmottaUser(), config.getMarmottaPassword());
             try {
                 final String encoded = DatatypeConverter.printBase64Binary(credentials.getBytes("UTF-8"));
                 post.setHeader("Authorization", String.format("Basic %s", encoded));