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 5555 <delete dir =" build" />
5656 <delete dir =" doc" />
5757 <delete >
58- <fileset dir =" ." includes =" ${ jarfile } " />
58+ <fileset dir =" ." includes =" *.jar " />
5959 <fileset file =" MANIFEST.MF" />
6060 </delete >
6161 </target >
Original file line number Diff line number Diff line change @@ -175,14 +175,6 @@ public String toString() {
175175 return result .toString ();
176176 }
177177
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-
186178 HttpEntity getEntity () {
187179 HttpEntity entity = null ;
188180
@@ -233,6 +225,10 @@ protected List<BasicNameValuePair> getParamsList() {
233225 return lparams ;
234226 }
235227
228+ protected String getParamString () {
229+ return URLEncodedUtils .format (getParamsList (), ENCODING );
230+ }
231+
236232 private static class FileWrapper {
237233 public InputStream inputStream ;
238234 public String fileName ;
You can’t perform that action at this time.
0 commit comments