Closed Bug 1149970 Opened 9 years ago Closed 9 years ago

Send and accept application/json in spartacus

Categories

(Marketplace Graveyard :: Payments/Refunds, defect)

Avenir
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: andy+bugzilla, Unassigned)

Details

We should be explicitly sending and accepting application/json in spartacus. Currently spartacus does not send an Accept: application/json for example. But I'll not that I've spotted code in webpay that behaves differently if it sees the application/json header.

Probably best to clean up webpay, then spartacus.
fwiw Anything sync methods backbone is calling defaults to application/json https://github.com/mozilla/spartacus/blob/master/public/js/models/base.js#L25
We did this for all requests and found a bug on from that request. But hey this is done.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.