• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hujianxin
V2EX  ›  程序员

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

  •  
  •   hujianxin · Oct 18, 2019 · 1914 views
    This topic created in 2428 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   ·   1618 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:33 · PVG 00:33 · LAX 09:33 · JFK 12:33
    ♥ Do have faith in what you're doing.