fixed location header not set bug, #174