good morning!!!!

Skip to content
Commits on Source (1)
  • a's avatar
    v1.9.5 · 0ca219de
    a authored
    0ca219de
......@@ -6,6 +6,7 @@ import (
"io"
"net/http"
"strconv"
"strings"
"gfx.cafe/open/goutil/constants"
"gfx.cafe/open/goutil/filing"
......@@ -39,7 +40,11 @@ type envelope struct {
}
func (F *Client) Meta(file string) (filing.HashedFileInfo, error) {
head, err := F.c.Get(file + "?metadata=true")
fn := file
if !strings.HasSuffix(fn, "/") {
fn = fn + "?metadata=true"
}
head, err := F.c.Get(fn)
if err != nil {
return nil, err
}
......