HTTP POST custom header doesn't work

If I use custom header for HTTP POST request, header is not string. It's array. So I change array_marge_recursive to array_replace_recursive.