冒昧地问一下header的参数为什么要这样处理

浏览:335 发布日期:2020/04/26 分类:ThinkPHP6专区 关键字: 请求
public function header(string $name = '', string $default = null)
    {
        if ('' === $name) {
            return $this->header;
        }

        // $name = str_replace('_', '-', strtolower($name));

        return $this->header[$name] ?? $default;
    }
导致现在前端传 push_a这样参数全部接收不到,只能是push-a

最佳答案
评论( 相关
后面还有条评论,点击查看>>