Skip to content

Commit cb3ec75

Browse files
Merge git://github.com/andershedstrom/cloudinary_java
2 parents 9a79c2a + 6774335 commit cb3ec75

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
bin
22
lib
33
target
4+
.classpath
5+
.project
6+
.settings

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<artifactId>cloudinary_java</artifactId>
55
<version>0.1-SNAPSHOT</version>
66
<name>Cloudinary Java Client Library</name>
7+
<properties>
8+
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
9+
</properties>
710
<dependencies>
811
<dependency>
912
<groupId>commons-lang</groupId>
@@ -51,4 +54,8 @@
5154
<version>4.10</version>
5255
</dependency>
5356
</dependencies>
57+
<build>
58+
<sourceDirectory>src</sourceDirectory>
59+
<testSourceDirectory>tests</testSourceDirectory>
60+
</build>
5461
</project>

src/com/cloudinary/Uploader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public Map callApi(String action, Map<String, String> params, Map options, Objec
152152
}
153153
}
154154

155-
if (file instanceof String && !((String) file).matches("^https?:")) {
155+
if (file instanceof String && !((String) file).matches("^https?:.*")) {
156156
file = new File((String) file);
157157
}
158158
if (file instanceof File) {

0 commit comments

Comments
 (0)