Fixed the issue with uninitialized @custom_headers variable