File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/com/loopj/android/http Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 5
5
<classpathentry kind =" src" path =" src" />
6
6
<classpathentry kind =" src" path =" gen" />
7
7
<classpathentry kind =" con" path =" com.android.ide.eclipse.adt.LIBRARIES" />
8
+ <classpathentry exported =" true" kind =" con" path =" com.android.ide.eclipse.adt.DEPENDENCIES" />
8
9
<classpathentry kind =" output" path =" bin/classes" />
9
10
</classpath >
Original file line number Diff line number Diff line change @@ -83,17 +83,22 @@ public SimpleMultipartEntity(AsyncHttpResponseHandler progressHandler) {
83
83
this .progressHandler = progressHandler ;
84
84
}
85
85
86
- public void addPart (final String key , final String value ) {
86
+ public void addPart (final String key , final String value , final String contentType ) {
87
87
try {
88
88
out .write (boundaryLine );
89
89
out .write (createContentDisposition (key ));
90
+ out .write (createContentType (contentType ));
90
91
out .write (CR_LF );
91
92
out .write (value .getBytes ());
92
93
out .write (CR_LF );
93
94
} catch (final IOException e ) {
94
95
// Can't happen on ByteArrayOutputStream
95
96
}
96
97
}
98
+
99
+ public void addPart (final String key , final String value ) {
100
+ addPart (key , value , "text/plain; charset=UTF-8" );
101
+ }
97
102
98
103
public void addPart (String key , File file ) {
99
104
addPart (key , file , null );
You can’t perform that action at this time.
0 commit comments