Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1025:cf0367978d8b
remove View.CaseInsensitive
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 02 Nov 2016 23:46:43 -0600 |
parents | 27f3dc761452 |
children | 2ea54e6117c3 |
comparison
equal
deleted
inserted
replaced
1024:be50ffc0ad5c | 1025:cf0367978d8b |
---|---|
443 super.toString(), | 443 super.toString(), |
444 _generator, | 444 _generator, |
445 _parser); | 445 _parser); |
446 } | 446 } |
447 | 447 |
448 private void startRequest(String method, Buffer uri, String version) throws IOException | 448 private void startRequest(String method, String uri, String version) throws IOException |
449 { | 449 { |
450 uri=uri.asImmutableBuffer(); | |
451 | |
452 _host = false; | 450 _host = false; |
453 _expect = false; | 451 _expect = false; |
454 _expect100Continue = false; | 452 _expect100Continue = false; |
455 _delayedHandling=false; | 453 _delayedHandling=false; |
456 _charset=null; | 454 _charset=null; |
460 _request.setMethod(method); | 458 _request.setMethod(method); |
461 | 459 |
462 try | 460 try |
463 { | 461 { |
464 _head = false; | 462 _head = false; |
463 byte[] bytes = StringUtil.getBytes(uri); | |
465 switch (HttpMethods.CACHE.getOrdinal(method)) | 464 switch (HttpMethods.CACHE.getOrdinal(method)) |
466 { | 465 { |
467 case HttpMethods.CONNECT_ORDINAL: | 466 case HttpMethods.CONNECT_ORDINAL: |
468 _uri.parseConnect(uri.array(), uri.getIndex(), uri.length()); | 467 _uri.parseConnect(bytes, 0, bytes.length); |
469 break; | 468 break; |
470 | 469 |
471 case HttpMethods.HEAD_ORDINAL: | 470 case HttpMethods.HEAD_ORDINAL: |
472 _head = true; | 471 _head = true; |
473 _uri.parse(uri.array(), uri.getIndex(), uri.length()); | 472 _uri.parse(bytes, 0, bytes.length); |
474 break; | 473 break; |
475 | 474 |
476 default: | 475 default: |
477 _uri.parse(uri.array(), uri.getIndex(), uri.length()); | 476 _uri.parse(bytes, 0, bytes.length); |
478 } | 477 } |
479 | 478 |
480 _request.setUri(_uri); | 479 _request.setUri(_uri); |
481 | 480 |
482 if (version==null) | 481 if (version==null) |
655 | 654 |
656 | 655 |
657 private class RequestHandler implements HttpParser.EventHandler | 656 private class RequestHandler implements HttpParser.EventHandler |
658 { | 657 { |
659 @Override | 658 @Override |
660 public void startRequest(String method, Buffer uri, String version) throws IOException | 659 public void startRequest(String method, String uri, String version) throws IOException |
661 { | 660 { |
662 AbstractHttpConnection.this.startRequest(method, uri, version); | 661 AbstractHttpConnection.this.startRequest(method, uri, version); |
663 } | 662 } |
664 | 663 |
665 @Override | 664 @Override |