Skip to content

Commit 742e4e4

Browse files
author
Sagar Sane
committed
Added Content-Type header in Curl request for it to work in AEM 6.2
1 parent 4dc12c5 commit 742e4e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grabbit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function newGrabbitRequest() {
3030
echo $SET_YELLOW
3131
echo "Processing....."
3232
echo $SET_NO_COLOR
33-
curl -s -f -X PUT --data-binary "@$configpath" -u $username:$password -D /tmp/grabbit_headers $client$GRABBIT_JOB > /tmp/grabbit
33+
curl -s -f -X PUT --header "Content-Type: text/plain" --data-binary "@$configpath" -u $username:$password -D /tmp/grabbit_headers $client$GRABBIT_JOB > /tmp/grabbit
3434
RSP_CODE=$?
3535
if [ $RSP_CODE -ne 0 ]; then
3636
clear

0 commit comments

Comments
 (0)