Fixes in HTTP layer leading to creation of #162.