Merge pull request #3493 from goekesmi/master

Pass content via printf string format and argument
This commit is contained in:
neil 2021-05-01 10:16:30 +08:00 committed by GitHub
commit 5707b93110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2357,7 +2357,7 @@ _startserver() {
echo 'HTTP/1.0 200 OK'; \ echo 'HTTP/1.0 200 OK'; \
echo 'Content-Length\: $_content_len'; \ echo 'Content-Length\: $_content_len'; \
echo ''; \ echo ''; \
printf -- '$content';" & printf '%s' '$content';" &
serverproc="$!" serverproc="$!"
} }