Skip to content

Commit

Permalink
Merge pull request #2 from hardillb/patch-1
Browse files Browse the repository at this point in the history
Make response HTTP spec compliant
  • Loading branch information
Thom-x authored Jul 16, 2022
2 parents a96ff5e + d1927b8 commit 1bb9a64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rootfs/var/www/localhost/htdocs/snapshot.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
URL="$(</tmp/url)"
timestamp=$(date +%Y-%m-%d_%H-%M-%S-%3N)
ffmpeg -y -rtsp_transport tcp -i $URL -frames:v 1 /var/www/localhost/htdocs/snapshots/snapshot_$timestamp.jpg -loglevel panic
echo "Content-type: text/html"
echo "Status: 302"
echo "Location: snapshots/snapshot_$timestamp.jpg"
echo
echo -e "Content-type: text/html\r"
echo -e "Status: 302\r"
echo -e "Location: snapshots/snapshot_$timestamp.jpg\r"
echo -e "\r"

0 comments on commit 1bb9a64

Please # to comment.