Ashley Harrison
f8d89eff56
Chore: fix type errors in tests ( #63270 )
...
* fix any's in tests
* fix more any's in tests
* more test type fixes
* fixing any's in tests part 3
* more test type fixes
* fixing test any's p5
* some tidy up
* fix template_srv
2023-02-14 16:46:42 +01:00
Levente Balogh
84b7efb393
fix: only "swallow" the json() parsing error if the response is empty ( #47493 )
2022-05-26 13:01:53 +02:00
Hugo Häggmark
c25031fa49
Chore: Remove console.log in fetch.test.ts ( #45134 )
2022-02-09 14:11:30 +01:00
renovate[bot]
d87cd6f26c
Update dependency prettier to v2.5.1 ( #43473 )
...
* Update dependency prettier to v2.5.1
* prettier fixes
* chore(toolkit): bump prettier to 2.5.1
* style(eslint): bump grafana config to 2.5.2 in core and toolkit
* style(mssql-datasource): fix no-inferrable-types eslint errors
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-02-02 12:02:32 +00:00
Ryan McKinley
d85d547ab3
BackendSrv: support binary responseType like $http did ( #29004 )
2020-11-18 09:35:28 -08:00
Hugo Häggmark
72c3257d19
BackendSrv: Uses credentials and defaults to same-origin ( #27385 )
...
Co-authored-by: Liu Yang yangliuyu@163.com
2020-09-04 22:11:34 +02:00
Tuan Anh Hoang-Vu
afd8ffde69
BackendSrv: include credentials when withCredentials option is set ( #23380 )
...
The fetch() API won't send cookies or other type of credentials unless
you set the credentials init option. Some datasources like Prometheus
and Elasticsearch have `withCredentials` option in Browser access mode,
but this option is not currently getting passed in the fetch() API.
Fixes #23338 .
2020-04-07 16:09:02 +02:00
Hugo Häggmark
8d5c6053db
BackendSrv: only add content-type on POST, PUT requests ( #22910 )
...
* BackendSrv: only add content-type on POST, PUT requests
Fixes #22869
* Tests: imports polyfill for Headers
2020-03-20 10:21:32 +01:00