]> source.dussan.org Git - jquery.git/commit
Ajax: Do not execute scripts for unsuccessful HTTP responses
authorSean Robinson <sean.robinson@scottsdalecc.edu>
Fri, 26 Apr 2019 14:25:08 +0000 (07:25 -0700)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 6 Apr 2020 20:33:56 +0000 (22:33 +0200)
commitda3dd85b63c4e3a6a768132c2a83a1a6eec24840
treec941a51b75c6ab462589c50ad37b5bc23fb1f0d3
parent065143c2e93512eb0c82d1b344b71d06eb7cf01c
Ajax: Do not execute scripts for unsuccessful HTTP responses

The script transport used to evaluate fetched script sources which is
undesirable for unsuccessful HTTP responses. This is different to other data
types where such a convention was fine (e.g. in case of JSON).

(cherry picked from 50871a5a85cc802421b40cc67e2830601968affe)

Fixes gh-4250
Fixes gh-4655
Closes gh-4379
src/ajax.js
test/data/mock.php
test/middleware-mockserver.js
test/unit/ajax.js