httpLayer bugfix