From 12bcaea03f2b8f68c561f9b2164a53b0f4b3dfdc Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Sun, 30 May 2021 13:45:27 +0900 Subject: [PATCH] delete content headers --- src/mechanize.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mechanize.cr b/src/mechanize.cr index d1a8cd6..4b75d3b 100644 --- a/src/mechanize.cr +++ b/src/mechanize.cr @@ -47,6 +47,8 @@ class Mechanize # fetch the page page = @agent.fetch(uri, :post, headers: headers, params: {"value" => request_data })#, cur_page + headers.delete("Content-Type") + headers.delete("Content-Length") #add_to_history(page) page end