From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 884F128298 for ; Fri, 22 Feb 2019 11:01:39 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xD306BVsEil7 for ; Fri, 22 Feb 2019 11:01:39 -0500 (EST) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 2DCF42825B for ; Fri, 22 Feb 2019 11:01:39 -0500 (EST) Subject: [tarantool-patches] Re: [PATCH] httpc: add checking of headers in httpc:request References: <20181221181844.4417-1-roman.habibov@tarantool.org> <20181223031929.hhmxdlsox2aon5ih@tkn_work_nb> <3b2626ce-b887-70dd-38b0-ef38b37a983c@tarantool.org> <72bbdfde-54d7-0e94-c5e7-ca84c2a6078d@tarantool.org> <7f31300f-2e4a-f0b1-a40c-90d631fb9778@tarantool.org> <2e5f83a6-2885-96f8-6fd6-a5fd34e32644@tarantool.org> <1549927450.14514.0@smtp.mail.ru> <1550573375.20050.0@smtp.mail.ru> From: Vladislav Shpilevoy Message-ID: Date: Fri, 22 Feb 2019 19:01:37 +0300 MIME-Version: 1.0 In-Reply-To: <1550573375.20050.0@smtp.mail.ru> Content-Type: text/plain; charset="iso-8859-5"; format="flowed" Content-Language: en-US Content-Transfer-Encoding: base64 Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Roman , "tarantool-patches@freelists.org" SGkhIFRoYW5rcyBmb3IgdGhlIGZpeGVzISBTZWUgMyBjb21tZW50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