diff options
Diffstat (limited to 'branches/sca-java-1.x/modules/binding-http-runtime')
-rw-r--r-- | branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java b/branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java index 084f52026f..41be041621 100644 --- a/branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java +++ b/branches/sca-java-1.x/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java @@ -106,7 +106,7 @@ public class HTTPBindingListenerServlet extends HttpServlet { protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
if(requiresAuthentication) {
- if(! hasAuthenticationHeader(request, response)) {
+ if(! hasAuthorization(request, response)) {
response.setHeader("WWW-Authenticate", "BASIC realm=\"Tuscany\"");
response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
}
@@ -503,7 +503,7 @@ public class HTTPBindingListenerServlet extends HttpServlet { */
- private boolean hasAuthenticationHeader(HttpServletRequest request, ServletResponse response) {
+ private boolean hasAuthorization(HttpServletRequest request, ServletResponse response) {
boolean result = false;
if(request.getHeader("Authorization") != null) {
result = true;
|