cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/selection BrowserSelectorFactory.java
Date Tue, 02 Oct 2001 07:09:03 GMT
cziegeler    01/10/02 00:09:03

  Modified:    src/org/apache/cocoon/selection Tag: cocoon_20_branch
                        BrowserSelectorFactory.java
  Log:
  Fix for missing "User-Agent" header
  Submitted by: Joerg Henne [j.henne@levigo.de]
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.3 +2 -1      xml-cocoon2/src/org/apache/cocoon/selection/BrowserSelectorFactory.java
  
  Index: BrowserSelectorFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/selection/BrowserSelectorFactory.java,v
  retrieving revision 1.1.1.1.2.2
  retrieving revision 1.1.1.1.2.3
  diff -u -r1.1.1.1.2.2 -r1.1.1.1.2.3
  --- BrowserSelectorFactory.java	2001/09/19 14:46:58	1.1.1.1.2.2
  +++ BrowserSelectorFactory.java	2001/10/02 07:09:02	1.1.1.1.2.3
  @@ -20,7 +20,7 @@
    * @author <a href="mailto:cziegeler@sundn.de">Carsten Ziegeler</a>
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.1.1.2.2 $ $Date: 2001/09/19 14:46:58 $
  + * @version CVS $Revision: 1.1.1.1.2.3 $ $Date: 2001/10/02 07:09:02 $
   */
   
   
  @@ -69,6 +69,7 @@
           StringBuffer sb = new StringBuffer();
            sb.append("if (pattern != null && objectModel.get(Constants.REQUEST_OBJECT)
!= null) {")
             .append("String userAgent = XSPRequestHelper.getHeader(objectModel,\"User-Agent\");")
  +          .append("if(null == userAgent)\nreturn false;")
             .append("XSPResponseHelper.addHeader(objectModel, \"Vary\", \"User-Agent\");")
             .append("for (int i = 0; i < pattern.length; i++) {")
             .append("if (userAgent.indexOf(pattern[i]) != -1) return true;}");
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message