Fixed http headers bug