Fix HTTP error

Hi, this fixes the error as described in http://serverfault.com/a/506086