lzpong / TinyWeb

A tiny web server based on libuv, can accept Socket,WebSocket,or http protocol,and set callBack func's 一个基于libuv的小型Web服务器,可以接受Socket,WebSocket,http协议和设置回调函数
https://github.com/lzpong/TinyWeb
GNU General Public License v3.0
31 stars 8 forks source link

HEAD 不支持, Range 有 BUG, Header格式问题 #3

Open lzpong opened 11 months ago

lzpong commented 11 months ago
  1. HEAD 不支持
    HEAD /20230615-bl1-P12L-ZXD1_V6.0.arxml HTTP/1.1
    Host: 172.31.3.65
    Accept: */*
    // 返回的数据:
    HEAD /20230615-bl1-P12L-ZXD1_V6.0.arxml HTTP/1.1
    Host: 172.31.3.65
    Accept: */* 
  2. Range 有 BUG
    GET /20230615-bl1-P12L-ZXD1_V6.0.arxml HTTP/1.1
    Host: 172.31.3.65
    Accept: */*
    Range: bytes=0-1404  //【BUG】链接保持不会断开
    // 返回的数据:
    GET /20230615-bl1-P12L-ZXD1_V6.0.arxml HTTP/1.1
    Host: 172.31.3.65
    Accept: */*
    Range: 0-1404  //【BUG】崩溃
  3. 格式问题
    HTTP/1.1 200 OK
    Date: Wed, 27 Sep 2023 08:45:43 GMT
    Server: TinyWeb v1.3.0
    Connection: close
    Content-Type:application/octet-stream;charset=utf-8  //【没有空格】
    Accept-Range: bytes
    Content-Length:140483258  //【没有空格】
lzpong commented 11 months ago

Fixed by : https://gitee.com/lzpong/TinyWeb