"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/MimeField.java" between
httpcomponents-client-5.2-src.tar.gz and httpcomponents-client-5.2.1-src.tar.gz

About: Apache HttpComponents Client provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. Java sources.

MimeField.java  (httpcomponents-client-5.2-src):MimeField.java  (httpcomponents-client-5.2.1-src)
skipping to change at line 87 skipping to change at line 87
} }
public String getBody() { public String getBody() {
final StringBuilder sb = new StringBuilder(); final StringBuilder sb = new StringBuilder();
sb.append(this.value); sb.append(this.value);
for (int i = 0; i < this.parameters.size(); i++) { for (int i = 0; i < this.parameters.size(); i++) {
final NameValuePair parameter = this.parameters.get(i); final NameValuePair parameter = this.parameters.get(i);
sb.append("; "); sb.append("; ");
sb.append(parameter.getName()); sb.append(parameter.getName());
sb.append("=\""); sb.append("=\"");
sb.append(parameter.getValue()); final String v = parameter.getValue();
for (int n = 0; n < v.length(); n++) {
final char ch = v.charAt(n);
if (ch == '"' || ch == '\\' ) {
sb.append("\\");
}
sb.append(ch);
}
sb.append("\""); sb.append("\"");
} }
return sb.toString(); return sb.toString();
} }
public List<NameValuePair> getParameters() { public List<NameValuePair> getParameters() {
return this.parameters; return this.parameters;
} }
@Override @Override
 End of changes. 1 change blocks. 
1 lines changed or deleted 8 lines changed or added

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