"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/impl/cookie/LaxExpiresHandler.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

LaxExpiresHandler.java  (httpcomponents-client-4.5.6-src):LaxExpiresHandler.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 208 skipping to change at line 208
} }
private void copyContent(final CharSequence buf, final ParserCursor cursor, final StringBuilder dst) { private void copyContent(final CharSequence buf, final ParserCursor cursor, final StringBuilder dst) {
int pos = cursor.getPos(); int pos = cursor.getPos();
final int indexFrom = cursor.getPos(); final int indexFrom = cursor.getPos();
final int indexTo = cursor.getUpperBound(); final int indexTo = cursor.getUpperBound();
for (int i = indexFrom; i < indexTo; i++) { for (int i = indexFrom; i < indexTo; i++) {
final char current = buf.charAt(i); final char current = buf.charAt(i);
if (DELIMS.get(current)) { if (DELIMS.get(current)) {
break; break;
} else {
pos++;
dst.append(current);
} }
pos++;
dst.append(current);
} }
cursor.updatePos(pos); cursor.updatePos(pos);
} }
@Override @Override
public String getAttributeName() { public String getAttributeName() {
return ClientCookie.EXPIRES_ATTR; return ClientCookie.EXPIRES_ATTR;
} }
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)