Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/openactive-broker-microservice/src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ async function renderTemplate(templateName, data) {
*/
function withOpportunityRpdeHeaders(getHeadersFn) {
return async () => ({
Accept: 'application/json, application/vnd.openactive.booking+json; version=1',
Accept: 'application/vnd.openactive.booking+json; version=1',
'Cache-Control': 'max-age=0',
...await getHeadersFn() || {},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getOrdersFeedHeader(bookingPartnerIdentifier) {
*/
function withOrdersRpdeHeaders(getHeadersFn) {
return async () => ({
Accept: 'application/json, application/vnd.openactive.booking+json; version=1',
Accept: 'application/vnd.openactive.booking+json; version=1',
'Cache-Control': 'max-age=0',
...await getHeadersFn() || {},
});
Expand Down
3 changes: 3 additions & 0 deletions packages/openactive-integration-tests/test/global-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ async function getEndpointUrl() {
async function deleteTestDataset(testInterfaceBaseUrl) {
const response = await axios.delete(`${testInterfaceBaseUrl}/test-interface/datasets/${TEST_DATASET_IDENTIFIER}`,
{
headers: {
'Accept': 'application/vnd.openactive.booking+json; version=1',
},
timeout: 60000,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class RequestHelper {

createHeaders() {
return {
Accept: 'application/vnd.openactive.booking+json; version=1',
'Content-Type': 'application/vnd.openactive.booking+json; version=1',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed to say what the content type of the request is

...this._getSellerRequestHeaders(),
};
Expand Down
Loading