Update http.function.php