aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/api/resource/DeviceResource.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/api/resource/DeviceResource.java b/src/main/java/org/traccar/api/resource/DeviceResource.java
index d7236fe2a..2edb0d16d 100644
--- a/src/main/java/org/traccar/api/resource/DeviceResource.java
+++ b/src/main/java/org/traccar/api/resource/DeviceResource.java
@@ -175,15 +175,15 @@ public class DeviceResource extends BaseObjectResource<Device> {
private String imageExtension(String type) {
switch (type) {
case "image/jpeg":
- return ".jpg";
+ return "jpg";
case "image/png":
- return ".png";
+ return "png";
case "image/gif":
- return ".gif";
+ return "gif";
case "image/webp":
- return ".webp";
+ return "webp";
case "image/svg+xml":
- return ".svg";
+ return "svg";
default:
throw new IllegalArgumentException("Unsupported image type");
}