delete content headers

master
Kanezoh 2021-05-30 13:45:27 +09:00
parent 71b97b6a38
commit 12bcaea03f
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ class Mechanize
# fetch the page # fetch the page
page = @agent.fetch(uri, :post, headers: headers, params: {"value" => request_data })#, cur_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) #add_to_history(page)
page page
end end