We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8eb72 commit 3dcedc4Copy full SHA for 3dcedc4
gh-md-toc
@@ -62,14 +62,16 @@ gh_toc_md2html() {
62
fi
63
64
if [ ! -z "${TOKEN}" ]; then
65
- AUTHORIZATION="--header \"Authorization: token ${TOKEN}\""
+ AUTHORIZATION="Authorization: token ${TOKEN}"
66
67
68
# echo $URL 1>&2
69
- OUTPUT="$(curl -s --user-agent "$gh_user_agent" \
70
- --data-binary @"$gh_file_md" -H "Content-Type:text/plain" \
71
- ${AUTHORIZATION} \
72
- $URL)"
+ OUTPUT=$(curl -s -v \
+ --user-agent "$gh_user_agent" \
+ --data-binary @"$gh_file_md" \
+ -H "Content-Type:text/plain" \
73
+ -H "$AUTHORIZATION" \
74
+ "$URL")
75
76
if [ "$?" != "0" ]; then
77
echo "XXNetworkErrorXX"
0 commit comments