firebase-tools
firebase-tools copied to clipboard
fix: send `x-goog-upload-status: final` in Firebase storage emulator `finalizeOneShotUpload`
Description
Fixes https://github.com/firebase/firebase-tools/issues/4959.
It appears the emulator doesn't send x-goog-upload-status in finalizeOneShotUpload, and the Firebase JS SDK expects this header to be set otherwise crashes with a "unknown error". This PR adds this header to make the uploads complete.
Scenarios Tested
- Resumable upload against emulator