You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ma...@apache.org on 2013/04/16 15:55:25 UTC

svn commit: r1468420 - /ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/servlet/BundleServlet.java

Author: marrs
Date: Tue Apr 16 13:55:24 2013
New Revision: 1468420

URL: http://svn.apache.org/r1468420
Log:
ACE-317 Fixed another typo.

Modified:
    ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/servlet/BundleServlet.java

Modified: ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/servlet/BundleServlet.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/servlet/BundleServlet.java?rev=1468420&r1=1468419&r2=1468420&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/servlet/BundleServlet.java (original)
+++ ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/servlet/BundleServlet.java Tue Apr 16 13:55:24 2013
@@ -325,13 +325,13 @@ public class BundleServlet extends HttpS
 
     // send a created response with location header
     private void sendCreated(HttpServletRequest request, HttpServletResponse response, String relativePath) {
-        StringBuilder locationBuiler = new StringBuilder(request.getScheme()).append("://").append(request.getServerName());
+        StringBuilder locationBuilder = new StringBuilder(request.getScheme()).append("://").append(request.getServerName());
         boolean ignorePort = (request.getScheme().equals("http") && request.getServerPort() == 80) | (request.getScheme().equals("https") && request.getServerPort() == 443);
         if(!ignorePort){
-            locationBuiler.append(":" + request.getServerPort());
+            locationBuilder.append(":" + request.getServerPort());
         }
-        locationBuiler.append(m_servletEndpoint).append(relativePath);
-        response.setHeader("Location", locationBuiler.toString());
+        locationBuilder.append(m_servletEndpoint).append(relativePath);
+        response.setHeader("Location", locationBuilder.toString());
         response.setStatus(SC_CREATED);
     }