V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hujianxin
V2EX  ›  程序员

nginx 如何拒绝带有 body 的 GET 请求

  •  
  •   hujianxin · Oct 18, 2019 · 1841 views
    This topic created in 2387 days ago, the information mentioned may be changed or developed.

    如题,目前 nginx 是不拒绝这种请求的,哪位大佬知道如何设置拒绝掉这种请求。

    julyclyde
        1
    julyclyde  
       Oct 18, 2019
    用 if 试试?
    hujianxin
        2
    hujianxin  
    OP
       Oct 18, 2019
    @julyclyde if 阶段拿不到 content-length 啊。。。
    hujianxin
        3
    hujianxin  
    OP
       Oct 18, 2019
    @julyclyde 真实的 content-length,而不是 content-length 头
    Aliencn
        4
    Aliencn  
       Oct 18, 2019
    搭配 lua
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   811 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:30 · PVG 06:30 · LAX 15:30 · JFK 18:30
    ♥ Do have faith in what you're doing.