feat(lander): server content-type header for file entries

This commit is contained in:
Jef Roosens 2023-11-12 14:29:46 +01:00
parent 70f622d9f3
commit c026e13c44
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 41 additions and 6 deletions

View file

@ -44,6 +44,7 @@ elif [ "$1" = f ]; then
-w "${URL}%header{location}" \
-XPOST \
-H "X-Api-Key: $API_KEY" \
-H "X-Lander-Content-Type: $(file --mime-type --brief $2)" \
--data-binary @"$2" \
"$URL/f/$3"
fi