Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
Conflicts:
	src/com/androidquery/callback/AbstractAjaxCallback.java
  • Loading branch information
androidquery committed Jul 3, 2012
2 parents 24e3e64 + 5ea3238 commit 2ad6671
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/build-full.jardesc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jardesc>
<jar path="AndroidQuery/dist/android-query-full.0.22.9-beta.jar"/>
<jar path="AndroidQuery/dist/android-query-full.0.22.10.jar"/>
<options buildIfNeeded="true" compress="true" descriptionLocation="/AndroidQuery/dist/build-full.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="true" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
<storedRefactorings deprecationInfo="true" structuralOnly="false"/>
<selectedProjects/>
Expand Down
4 changes: 3 additions & 1 deletion src/com/androidquery/callback/AbstractAjaxCallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -1610,8 +1610,10 @@ private static void writeObject(DataOutputStream dos, String name, Object obj) t
if(obj == null) return;

if(obj instanceof File){

File file = (File) obj;
writeData(dos, name, file.getName(), new FileInputStream(file));

}else if(obj instanceof byte[]){
writeData(dos, name, name, new ByteArrayInputStream((byte[]) obj));
}else{
Expand All @@ -1620,7 +1622,7 @@ private static void writeObject(DataOutputStream dos, String name, Object obj) t

}



private static void writeData(DataOutputStream dos, String name, String filename, InputStream is) throws IOException {

dos.writeBytes(twoHyphens + boundary + lineEnd);
Expand Down

0 comments on commit 2ad6671

Please sign in to comment.