HTTPUpload: Correctly unpack headers

Fixes #10337
3 jobs for master in 4 minutes and 44 seconds (queued for 1 second)
Status Name Job ID Coverage
  Test
passed run-appdata #20008

00:00:08

passed run-tests #20007

00:04:01

 
  Build
passed run-build #20009

00:00:34