lukasredev / skipper-azure

Skipper adapter for Microsoft Azure storage.
MIT License
7 stars 12 forks source link

Return the complete response, not just first chunk #3

Closed robertrossmann closed 9 years ago

robertrossmann commented 9 years ago

This fixes an issue where only first chunks are returned for larger files, effectively corrupting the data.

This works so that we instead ask Azure to create a read stream that we will consume, and the concat-stream module takes care of combining all the data chunks into one buffer that can be returned to the client.

lukasredev commented 9 years ago

Very elegant. Thanks for you help.