summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-04 12:49:54 -0700
committertjp <tjp@ctrl-c.club>2024-01-04 12:49:54 -0700
commitb09d2de941b65956eb7c748e3ce44ff568d4c2af (patch)
tree4f69c0c8616bfb0adf789b089e989e723eba894f
parent1352f915a62676959f4d7832e7763cbe2589b680 (diff)
titan support in the client.Upload() method
-rw-r--r--client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.go b/client.go
index 7e792b7..74fe04c 100644
--- a/client.go
+++ b/client.go
@@ -105,7 +105,7 @@ func (c Client) Upload(url string, contents io.Reader) (*Response, error) {
return nil, err
}
switch u.Scheme {
- case "spartan", "http", "https":
+ case "titan", "spartan", "http", "https":
return c.RoundTrip(&types.Request{URL: u, Meta: contents})
default:
return nil, fmt.Errorf("upload not supported on %s", u.Scheme)