I have a feeling this was due to our legacy "html app." For this patch, assume ``request.API`` will always be True. You don't need the else branch here.