commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/xml RequestHandler.java
Date Tue, 16 Jul 2002 22:57:50 GMT
morgand     2002/07/16 15:57:50

  Modified:    latka/src/java/org/apache/commons/latka/xml
                        RequestHandler.java
  Log:
  adding HTTP/1.0 support - patch submitted by Ryan Lubke
  
  Revision  Changes    Path
  1.25      +7 -4      jakarta-commons/latka/src/java/org/apache/commons/latka/xml/RequestHandler.java
  
  Index: RequestHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/xml/RequestHandler.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- RequestHandler.java	15 Jul 2002 16:10:27 -0000	1.24
  +++ RequestHandler.java	16 Jul 2002 22:57:50 -0000	1.25
  @@ -108,6 +108,7 @@
   
       protected Request  _request = null;
       protected Response _response = null;
  +    protected String _version = "1.1";
       protected boolean  _requestExecuted = false;
       protected Credentials _credentials = null;
   
  @@ -254,7 +255,7 @@
               }
   
               Request request = _session.createRequest(_request.getLabel(), url,
  -                _request.getMethod(), true, getProxy());
  +                _request.getMethod(), _version, true, getProxy());
               request.setParameters(_request.getParameters());
               request.setHeaders(_request.getHeaders());
               if (_credentials != null) {
  @@ -336,8 +337,10 @@
               followRedirects = false;
           }
   
  -        return _session.createRequest(label, url, method, followRedirects,
  -            getProxy());
  +        _version = atts.getValue("version");
  +        return _session.createRequest(label, url, method, _version,
  +                                      followRedirects, getProxy());
  +
       }
   
       protected void printFailure(Request req, Exception e) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message