nutzam / nutz

Nutz -- Web Framework(Mvc/Ioc/Aop/Dao/Json) for ALL Java developer
https://nutzam.com
Apache License 2.0
2.53k stars 942 forks source link

为Cookie增加ignoreNull参数,忽略cookie name关键字大小写 #1571

Closed happyday517 closed 3 years ago

codecov-io commented 3 years ago

Codecov Report

Merging #1571 (4c86bc8) into master (af69b9b) will increase coverage by 0.01%. The diff coverage is 28.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1571      +/-   ##
==========================================
+ Coverage   48.67%   48.69%   +0.01%     
==========================================
  Files         882      882              
  Lines       37217    37220       +3     
  Branches     8039     8039              
==========================================
+ Hits        18117    18124       +7     
+ Misses      16685    16683       -2     
+ Partials     2415     2413       -2     
Impacted Files Coverage Δ
src/org/nutz/http/Cookie.java 33.84% <28.57%> (-0.03%) :arrow_down:
src/org/nutz/lang/socket/Sockets.java 63.80% <0.00%> (+1.90%) :arrow_up:
src/org/nutz/lang/random/ListRandom.java 94.44% <0.00%> (+22.22%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update af69b9b...4c86bc8. Read the comment docs.

wendal commented 3 years ago

大哥, 忽略大小写是ignoreCase呀

happyday517 commented 3 years ago

是两个功能 ^_^

  1. 为Cookie增加ignoreNull参数,有时候value为空,但之前的实现会忽略这些cookie,通过这个参数可以保存为空字符串
  2. 忽略cookie name关键字大小写,很多服务器不讲武德,返回的大小写不规范,但貌似浏览器也能识别