* Check if `mime` is json or has +json structured syntax suffix. * * @param {String} mime * @return {Boolean} * @api private
(mime)
| 1806 | */ |
| 1807 | |
| 1808 | function isJSON(mime) { |
| 1809 | // should match /json or +json |
| 1810 | // but not /json-seq |
| 1811 | return /[/+]json($|[^-\w])/i.test(mime); |
| 1812 | } |
| 1813 | |
| 1814 | /** |
| 1815 | * Check if we should follow the redirect `code`. |
no outgoing calls
no test coverage detected