Reanalysis of the Gaia Data Release 2 photometric sensitivity curves using HST/STIS spectrophotometry