comparison src/org/eclipse/jetty/http/HttpParser.java @ 1059:013939bfc9e8

remove JBuffer.poke()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2016 05:39:33 -0700
parents 87275900646e
children c880589715c7
comparison
equal deleted inserted replaced
1058:419bf9c03d84 1059:013939bfc9e8
507 507
508 case HttpHeaders.TRANSFER_ENCODING_ORDINAL: 508 case HttpHeaders.TRANSFER_ENCODING_ORDINAL:
509 // value=HttpHeaderValues.CACHE.lookup(value); 509 // value=HttpHeaderValues.CACHE.lookup(value);
510 vo = HttpHeaderValues.CACHE.getOrdinal(value); 510 vo = HttpHeaderValues.CACHE.getOrdinal(value);
511 if (HttpHeaderValues.CHUNKED_ORDINAL == vo) 511 if (HttpHeaderValues.CHUNKED_ORDINAL == vo)
512 _contentLength=HttpTokens.CHUNKED_CONTENT; 512 _contentLength = HttpTokens.CHUNKED_CONTENT;
513 else 513 else
514 { 514 {
515 if (value.endsWith(HttpHeaderValues.CHUNKED)) 515 if (value.endsWith(HttpHeaderValues.CHUNKED))
516 _contentLength=HttpTokens.CHUNKED_CONTENT; 516 _contentLength = HttpTokens.CHUNKED_CONTENT;
517 517
518 else if (value.indexOf(HttpHeaderValues.CHUNKED) >= 0) 518 else if (value.indexOf(HttpHeaderValues.CHUNKED) >= 0)
519 throw new HttpException(400,null); 519 throw new HttpException(400,null);
520 } 520 }
521 break; 521 break;