Skip to content

Commit

Permalink
fix ota update response
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate committed Aug 9, 2019
1 parent 8d99bfe commit 6a52291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified firmware/konnected-filesystem-0x100000-2-3-0.img
Binary file not shown.
4 changes: 2 additions & 2 deletions src/lfs/ota.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ local function process(request)
local uri = request.body.uri
local proto, host, path, filename = string.match(uri, "(%w+)://([^/]+)(/[%w%p]+/)(.*)")
LFS.http_ota(host, path, filename)
return ""
return '{ "status":"ok", "host":"'.. host ..'", "path":"'.. path ..'", "filename":"'.. filename ..'" }'
else
return "bad request"
return '{ "status":"bad request" }'
end
end

Expand Down

0 comments on commit 6a52291

Please sign in to comment.