The headers array contains 2 sub-arrays, whatever the number of measures. The test on nbr_measures was thus incorrect and produced an error when downloading a table with a single measure. Also fix the typo in dow(n)load_table function name.
The headers array contains 2 sub-arrays, whatever the number of measures. The test on nbr_measures was thus incorrect and produced an error when downloading a table with a single measure. Also fix the typo in dow(n)load_table function name.