Skip to content

Commit fc5862e

Browse files
committed
1 parent a77e7e6 commit fc5862e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@ public void put(String key, String value) {
126126
}
127127
}
128128

129+
/**
130+
* Adds a integer param to the request.
131+
*
132+
* @param key the key name for the new param.
133+
* @param value the integer value for the new param.
134+
*/
135+
public void put(String key, int value) {
136+
if (key != null) {
137+
urlParams.put(key, String.valueOf(value));
138+
}
139+
}
140+
129141
/**
130142
* Adds a file to the request.
131143
*

0 commit comments

Comments
 (0)