Просмотр исходного кода

Merge branch 'master' of https://gitee.com/openLuat/LuatOS

梁健 6 месяцев назад
Родитель
Сommit
2facf731fa
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      module/Air8000/demo/httpv2/httpplus_app.lua

+ 2 - 2
module/Air8000/demo/httpv2/httpplus_app.lua

@@ -98,9 +98,9 @@ local httpplus = require "httpplus"
 -- timeout可以设置超时时间
 local function httpplus_app_get()
     local body
-    -- https get请求https://www.air32.cn/网页内容
+    -- https get请求https://httpbin.air32.cn/get
     -- 如果请求成功,请求的数据保存到response.body中
-    local code, response = httpplus.request({url="https://www.air32.cn/"})
+    local code, response = httpplus.request({url="https://httpbin.air32.cn/get"})
     log.info("httpplus_app_get1", code==200 and "success" or "error", code)
     if code==200 then
         log.info("httpplus_app_get1 headers", json.encode(response.headers or {}))