File tree Expand file tree Collapse file tree 2 files changed +2
-25
lines changed Expand file tree Collapse file tree 2 files changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,8 @@ module.exports = function xhrAdapter(config) {
4949 var responseData = ! config . responseType || config . responseType === 'text' ? request . responseText : request . response ;
5050 var response = {
5151 data : responseData ,
52- // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201)
53- status : request . status === 1223 ? 204 : request . status ,
54- statusText : request . status === 1223 ? 'No Content' : request . statusText ,
52+ status : request . status ,
53+ statusText : request . statusText ,
5554 headers : responseHeaders ,
5655 config : config ,
5756 request : request
Original file line number Diff line number Diff line change @@ -220,28 +220,6 @@ describe('requests', function () {
220220 } ) ;
221221 } ) ;
222222
223- // https://github.com/axios/axios/issues/201
224- it ( 'should fix IE no content error' , function ( done ) {
225- var response ;
226-
227- axios ( '/foo' ) . then ( function ( res ) {
228- response = res
229- } ) ;
230-
231- getAjaxRequest ( ) . then ( function ( request ) {
232- request . respondWith ( {
233- status : 1223 ,
234- statusText : 'Unknown'
235- } ) ;
236-
237- setTimeout ( function ( ) {
238- expect ( response . status ) . toEqual ( 204 ) ;
239- expect ( response . statusText ) . toEqual ( 'No Content' ) ;
240- done ( ) ;
241- } , 100 ) ;
242- } ) ;
243- } ) ;
244-
245223 it ( 'should allow overriding Content-Type header case-insensitive' , function ( done ) {
246224 var response ;
247225 var contentType = 'application/vnd.myapp.type+json' ;
You can’t perform that action at this time.
0 commit comments