Connection: "close" in HTTP headers in fetchWebServiceMap in MapComponent.js

This commit is contained in:
ISA
2024-09-10 14:04:39 +02:00
parent d57d86cf6c
commit 77bc63f22e
4 changed files with 17 additions and 12 deletions

View File

@@ -197,9 +197,9 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
//---------------------------------------------------------------
useEffect(() => {
/* useEffect(() => {
fetchGisStatusStations(12, 484); // Beispielaufruf mit idMap = 10 und idUser = 484
}, []);
}, []); */
useEffect(() => {
const params = new URL(window.location.href).searchParams;
@@ -246,7 +246,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
const fetchOptions = {
method: "GET",
headers: {
Connection: "keep-alive", // Keep-Alive-Header hinzufügen
Connection: "close", // Keep-Alive-Header hinzufügen
},
};