Return NotFound if Accept-Language not set

Found in

EPiServer.ContentDeliveryApi 1.0.1

Fixed in

EPiServer.ContentDeliveryApi 2.1.0

Created

Jul 06, 2018

Updated

Oct 30, 2018

State

Closed, Fixed and tested


Description

Steps to reproduce:
1. Change site language to svenska.
2. Create a page in the sv language > publish the page.
3. Don't set value for Accept-Language > Get content by ID, for example

EPCMSHost/api/episerver/v1.0/content/136

Expected:
It should return info for all content languages of the contentID if Accept-Language is not set or blank.

Actual:
It returns status: 404 Not Found
"code": "NotFound",
"message": "Content was not found"