Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
은승우
2019-12-05 13:23:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
80f79dc5e4abb86e8c604f6300a18da970947518
80f79dc5
1 parent
a8b1d0e5
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app.js
app.js
View file @
80f79dc
...
...
@@ -97,15 +97,15 @@ async function handleEvent(event) {
language
:
'en'
},
headers
:
{
'Content-Type'
:
'application/
json
'
,
'Content-Type'
:
'application/
octet-stream
'
,
'Ocp-Apim-Subscription-Key'
:
'979dc5d63344438fa4701c62feebb7dc'
},
body
:
atob
(
chunk
)
body
:
chunk
};
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
console
.
log
(
options
);
var
data
=
JSON
.
stringify
(
body
);
var
data
=
atob
(
body
);
var
text
=
''
;
console
.
log
(
data
);
while
(
data
.
indexOf
(
'text\\'
)
!=-
1
)
...
...
Please
register
or
login
to post a comment