Bugfix in HTTP request handling