File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,6 @@ describe('StacApi', () => {
101101 'https://api.example.com/search?collections=sentinel-2-l2a&datetime=2025-12-01%2F2025-12-31' ,
102102 expect . objectContaining ( {
103103 method : 'GET' ,
104- headers : expect . objectContaining ( {
105- 'Content-Type' : 'application/json' ,
106- } ) ,
107104 } )
108105 ) ;
109106 } ) ;
Original file line number Diff line number Diff line change @@ -92,9 +92,8 @@ class StacApi {
9292 return fetch ( url , {
9393 method,
9494 headers : {
95- 'Content-Type' : 'application/json' ,
96- ...headers ,
9795 ...this . options ?. headers ,
96+ ...headers ,
9897 } ,
9998 body : payload ? JSON . stringify ( payload ) : undefined ,
10099 } ) ;
@@ -114,7 +113,7 @@ class StacApi {
114113 return this . fetch ( `${ this . baseUrl } /search` , {
115114 method : 'POST' ,
116115 payload : requestPayload ,
117- headers,
116+ headers : { 'Content-Type' : 'application/json' , ... headers } ,
118117 } ) ;
119118 } else {
120119 const query = this . payloadToQuery ( requestPayload ) ;
You can’t perform that action at this time.
0 commit comments