Returning proper content type in "get_data" endpoint