Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6811629877 |
No files matched your search
+5
@@ -894,6 +894,11 @@ func (m *Mega) NewDownload(src *Node) (*Download, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DownloadResp has an embedded error in it for some reason
|
||||||
|
if res[0].Err != 0 {
|
||||||
|
return nil, parseError(res[0].Err)
|
||||||
|
}
|
||||||
|
|
||||||
_, err = decryptAttr(key, []byte(res[0].Attr))
|
_, err = decryptAttr(key, []byte(res[0].Attr))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
+4
-4
@@ -120,10 +120,10 @@ type DownloadMsg struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DownloadResp struct {
|
type DownloadResp struct {
|
||||||
G string `json:"g"`
|
G string `json:"g"`
|
||||||
Size uint64 `json:"s"`
|
Size uint64 `json:"s"`
|
||||||
Attr string `json:"at"`
|
Attr string `json:"at"`
|
||||||
Err uint32 `json:"e"`
|
Err ErrorMsg `json:"e"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UploadMsg struct {
|
type UploadMsg struct {
|
||||||
|
|||||||
Reference in new issue
Block a user