Finally fixed content-type issue.