File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
src/com/loopj/android/http Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 55
55
<delete dir =" build" />
56
56
<delete dir =" doc" />
57
57
<delete >
58
- <fileset dir =" ." includes =" ${ jarfile } " />
58
+ <fileset dir =" ." includes =" *.jar " />
59
59
<fileset file =" MANIFEST.MF" />
60
60
</delete >
61
61
</target >
Original file line number Diff line number Diff line change @@ -175,14 +175,6 @@ public String toString() {
175
175
return result .toString ();
176
176
}
177
177
178
- String getParamString () {
179
- if (!fileParams .isEmpty ()) {
180
- throw new RuntimeException ("Uploading files is not supported with Http GET requests." );
181
- }
182
-
183
- return URLEncodedUtils .format (getParamsList (), ENCODING );
184
- }
185
-
186
178
HttpEntity getEntity () {
187
179
HttpEntity entity = null ;
188
180
@@ -233,6 +225,10 @@ protected List<BasicNameValuePair> getParamsList() {
233
225
return lparams ;
234
226
}
235
227
228
+ protected String getParamString () {
229
+ return URLEncodedUtils .format (getParamsList (), ENCODING );
230
+ }
231
+
236
232
private static class FileWrapper {
237
233
public InputStream inputStream ;
238
234
public String fileName ;
You can’t perform that action at this time.
0 commit comments