New B2 API endpoint

Backblaze will change the authentication API endpoint on August 16, 2016. The old endpoint will be removed Feb 2nd 2017.

See https://help.backblaze.com/hc/en-us/articles/224959187-B2-Domain-Migration-Plan
This commit is contained in:
Per Cederberg 2016-08-15 15:59:19 +02:00 committed by GitHub
parent ae6018355c
commit bb62c49489

View File

@ -29,7 +29,7 @@ import (
)
const (
defaultEndpoint = "https://api.backblaze.com"
defaultEndpoint = "https://api.backblazeb2.com"
headerPrefix = "x-bz-info-" // lower case as that is what the server returns
timeKey = "src_last_modified_millis"
timeHeader = headerPrefix + timeKey