You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In XHR's request, if I do not provide the response body - data, for example, in Node, using response. end() to end the request, the value of xhr.response will vary depending on the xhr.responseType. The actual comparison situation is shown in the table below.
xhr.responseType
xhr.response
""
""
text
""
json
null
blob
new Blob([], { type: "Content-Type" })(The value of Content-Type is returned by the server)
arraybuffer
new ArrayBuffer()
But in xhook, the value of xhr. response is always an empty string.
The text was updated successfully, but these errors were encountered:
condorheroblog
added a commit
to condorheroblog/vite-plugin-fake-server
that referenced
this issue
Jan 5, 2024
In XHR's request, if I do not provide the response body - data, for example, in Node, using
response. end()
to end the request, the value ofxhr.response
will vary depending on thexhr.responseType
. The actual comparison situation is shown in the table below.""
""
text
""
json
null
blob
new Blob([], { type: "Content-Type" })
(The value of Content-Type is returned by the server)arraybuffer
new ArrayBuffer()
But in xhook, the value of
xhr. response
is always an empty string.The text was updated successfully, but these errors were encountered: