mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
SMACK-404 Removed unnecessary string construction.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_0@13603 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
4155e9ca80
commit
ba81a45b8c
1 changed files with 1 additions and 4 deletions
|
@ -3,8 +3,6 @@
|
|||
* $Revision$
|
||||
* $Date$
|
||||
*
|
||||
* Copyright 2003-2007 Jive Software.
|
||||
*
|
||||
* All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
@ -92,8 +90,7 @@ class HTTPProxySocketFactory
|
|||
else
|
||||
{
|
||||
String password = proxy.getProxyPassword();
|
||||
proxyLine = "\r\nProxy-Authorization: Basic "
|
||||
+ new String(StringUtils.encodeBase64(username + ":" + password));
|
||||
proxyLine = "\r\nProxy-Authorization: Basic " + StringUtils.encodeBase64(username + ":" + password);
|
||||
}
|
||||
socket.getOutputStream().write((hostport + " HTTP/1.1\r\nHost: "
|
||||
+ hostport + proxyLine + "\r\n\r\n").getBytes("UTF-8"));
|
||||
|
|
Loading…
Reference in a new issue