aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/caldav/routes.go2
-rw-r--r--plugins/carddav/routes.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/caldav/routes.go b/plugins/caldav/routes.go
index 1d052c3..f1baa1e 100644
--- a/plugins/caldav/routes.go
+++ b/plugins/caldav/routes.go
@@ -62,7 +62,7 @@ func parseObjectPath(s string) (string, error) {
err = fmt.Errorf("failed to parse path: %v", err)
return "", echo.NewHTTPError(http.StatusBadRequest, err)
}
- return string(p), nil
+ return p, nil
}
func parseTime(dateStr, timeStr string) (time.Time, error) {
diff --git a/plugins/carddav/routes.go b/plugins/carddav/routes.go
index f8b51ef..fe7c37d 100644
--- a/plugins/carddav/routes.go
+++ b/plugins/carddav/routes.go
@@ -40,7 +40,7 @@ func parseObjectPath(s string) (string, error) {
err = fmt.Errorf("failed to parse path: %v", err)
return "", echo.NewHTTPError(http.StatusBadRequest, err)
}
- return string(p), nil
+ return p, nil
}
func registerRoutes(p *plugin) {