Skip to content

Commit

Permalink
Remove support for gzipped logs
Browse files Browse the repository at this point in the history
The backend does not currently handle `Content-Encoding` headers
properly anymore.
See: https://sumologic.atlassian.net/browse/SUMO-232957
  • Loading branch information
ccressent committed Dec 4, 2023
1 parent 23026d4 commit adbf7a0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,7 @@ EOF

function reporter {
echo "SUMOLOGIC_INSTALLATION_TOKEN=${SUMOLOGIC_INSTALLATION_TOKEN}" >> $INSTALLATION_LOGFILE

if command -v "gzip" &> /dev/null; then
gzip < "${INSTALLATION_LOGFILE}" | curl --silent --location -X POST --header 'Content-Encoding:gzip' --data-binary @- "${INSTALLATION_LOGFILE_ENDPOINT}"
else
curl --silent --location -X POST --data-binary @"${INSTALLATION_LOGFILE}" "${INSTALLATION_LOGFILE_ENDPOINT}"
fi
curl --silent --location -X POST --data-binary @"${INSTALLATION_LOGFILE}" "${INSTALLATION_LOGFILE_ENDPOINT}"
}
trap reporter EXIT

Expand Down

0 comments on commit adbf7a0

Please sign in to comment.