Commit Graph
5 Commits
Author SHA1 Message Date
Nick Craig-Wood fe9596bfbb Remove extra / in Metadata request
This fixes the issuing of a request with a doubled slash in the URL.
This causes Dropbox to issue a 301 redirect to the URL without the
`//` which causes an extra HTTP transaction.
2016-04-24 11:09:33 +01:00
Nick Craig-Wood 65cf94b76c Make Entry.Size and ChunkUploadResponse.Offset be int64 - fixes #19
This allows the code to deal with files > 2 GB in size.  Previous to
this change a file > 2 GB would cause a JSON unmarshal error.

This is a breaking change to the API.  However the Go compiler will
throw errors at the right places when compiling so should be easy to
fix up the code.
2015-08-03 21:03:46 +01:00
Nick Craig-Wood 0a9c3185c6 Escape paths in urls - fixes #4 2014-07-28 23:53:25 +01:00
Nick Craig-Wood 04ed0a20f9 Make compatible with go 1.1 2014-07-19 15:36:35 +01:00
Nick Craig-Wood 8f46d993e2 Preserve HTTP staus codes in errors if possible
Dropbox being a REST driven service often returns useful information
in the HTTP error code.  Make sure we return these in a custom Error
type if possible.
2014-07-13 10:29:54 +01:00