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 18:45:55 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ee53b1bc1479c13d297b3595456e9558e6771c72
ee53b1bc
1 parent
946a2171
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
app.js
app.js
View file @
ee53b1b
...
...
@@ -98,11 +98,15 @@ async function handleEvent(event) {
'detectOrientation'
:
'true'
,
},
headers
:
{
'Content-Type'
:
'
multipart/form-data
'
,
'Content-Type'
:
'
application/json
'
,
'Ocp-Apim-Subscription-Key'
:
'979dc5d63344438fa4701c62feebb7dc'
},
body
:
fs
.
readFileSync
(
'./photo/1.png'
)
};
request
.
get
(
'/photo'
,(
req
,
res
)
=>
{
res
.
send
(
body
);
})
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
var
data
=
body
;
console
.
log
(
data
);
...
...
Please
register
or
login
to post a comment