fetch (url, {
method: ‘post’,
headers: {
“Content-type”: -------------
},
body: ‘foo=bar & lorem=ipsum’
})
After considering the snippet above which of the following values for the Content-Type header is/are correct?
A) application/x-www-form-urlencoded; charset=UTF-8
B) text/html; charset=utf-8
C)application/json; charset=UTF-8
D)Content-Type: multipart/form-data; boundry=something
According to me B and D is correct but the test is failing me. Any suggestions?