Skip to content

Commit 70ac4f0

Browse files
committed
Expose another method
1 parent f422ec8 commit 70ac4f0

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
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>

src/com/loopj/android/http/RequestParams.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)