mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-20 22:42:16 +01:00
dont use conntection=close header
This commit is contained in:
@@ -54,12 +54,6 @@ public class HttpUtil
|
||||
/** Field description */
|
||||
public static final String AUTHENTICATION_REALM = "SONIA :: SCM Manager";
|
||||
|
||||
/** Field description */
|
||||
public static final String HEADERVALUE_CONNECTION_CLOSE = "close";
|
||||
|
||||
/** Field description */
|
||||
public static final String HEADER_CONNECTION = "connection";
|
||||
|
||||
/** Field description */
|
||||
public static final String HEADER_WWW_AUTHENTICATE = "WWW-Authenticate";
|
||||
|
||||
@@ -83,7 +77,6 @@ public class HttpUtil
|
||||
response.setHeader(
|
||||
HEADER_WWW_AUTHENTICATE,
|
||||
"Basic realm=\"".concat(AUTHENTICATION_REALM).concat("\""));
|
||||
response.setHeader(HEADER_CONNECTION, HEADERVALUE_CONNECTION_CLOSE);
|
||||
response.sendError(HttpServletResponse.SC_UNAUTHORIZED,
|
||||
STATUS_UNAUTHORIZED_MESSAGE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user