coryrwest / B2.NET

.NET library for Backblaze's B2 Cloud Storage
MIT License
62 stars 33 forks source link

Is the Content-Length header correct when uploading? #53

Open MrM40 opened 2 years ago

MrM40 commented 2 years ago

When uploading a file the request must include a content-length header which consist of the length of the file + the length of the 40 bytes SHA1. But it seem to me the code only sent the length of the file and doesn't include the length of the SHA1.

FileUploadRequestGenerators.cs, link 53

B2 API documentation

Or am I just not capable to reading the code :-/