Is this correct?
var headers = new Headers();
headers.append('Accept', 'application/json, application/pdf')
I want to accept both json and pdf files.
Yes, it is correct. Example form w3c:
Accept: text/plain, text/html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With