From patchwork Mon Jul 2 12:52:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Eckert X-Patchwork-Id: 937878 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dev.tdt.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YzaiU4mk"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41K6cB3rsNz9s3q for ; Mon, 2 Jul 2018 22:52:58 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=w/vX6cVVWBKugY7NDZ3SoQ19IRGaC+T1F4t/F+PUXsg=; b=YzaiU4mkEMBf9JEMmP5LXEk0IV nhwjgcQXoCwXI1sx7vWEDRI+7kfow5zb+SFbLWc9x+fLnSzw4PjLpNeXLOThxU4AWbquPF3bjtXUb Sg8uxpJelrfPGpz7BtH3n50u6MsKSWtOcSKgHa1RkfBZjEdHVQoC4TARJ6MIJIv1NaCbiNPnw8ORR /dWjHO3b2DCXVMknrLgebWLBNkWdZ7Acr1FKCB5dhkopoVUomeVxiACJjYe3/8H0preF+BDoA+1EW d5bqEHNwx1pzcDPHs2EOl2Vcuhum77Naj8fDmHhdDM/MLSOH2mstUsNylVG51FhT+lI39hewuQjwO Cy4GF5eA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fZyJw-0008B6-AG; Mon, 02 Jul 2018 12:52:44 +0000 Received: from ms.tdt.de ([195.243.126.94] helo=mail.dev.tdt.de) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fZyJm-0007y1-DL for openwrt-devel@lists.openwrt.org; Mon, 02 Jul 2018 12:52:41 +0000 Received: from feckert01.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 6119A20B11 for ; Mon, 2 Jul 2018 12:52:20 +0000 (UTC) From: Florian Eckert To: openwrt-devel@lists.openwrt.org Date: Mon, 2 Jul 2018 14:52:10 +0200 Message-Id: <20180702125210.9749-2-fe@dev.tdt.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180702125210.9749-1-fe@dev.tdt.de> References: <20180702125210.9749-1-fe@dev.tdt.de> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.dev.tdt.de X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180702_055234_735936_C38D07F0 X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- Subject: [OpenWrt-Devel] [PATCH 2/2] services/uhttpd: Disable option -M for Last-Modified header X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Make Last-Modified header configurable over uci. If option is not set then send Last-Modified header. This is the equal to the behaviour as before this option was added. Signed-off-by: Florian Eckert --- package/network/services/uhttpd/files/uhttpd.init | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init index 47270bcc15..2367ac137f 100755 --- a/package/network/services/uhttpd/files/uhttpd.init +++ b/package/network/services/uhttpd/files/uhttpd.init @@ -127,6 +127,7 @@ start_instance() append_bool "$cfg" no_symlinks "-S" 0 append_bool "$cfg" no_dirlists "-D" 0 append_bool "$cfg" rfc1918_filter "-R" 0 + append_bool "$cfg" no_last_modified_header "-M" 0 config_get alias_list "$cfg" alias for alias in $alias_list; do