mechanize 2.10.1 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5d4ec84463a2df7945cede673dde4ea74d9f03270c923cd7f11d2fbc56aadcd
4
- data.tar.gz: c5803f307bc7924da28191b6cfee4a9ce2ed4e9f5daeeee3e3cc9e38bd405cfc
3
+ metadata.gz: b4c0419c6395467b67e04d02f6fad693555635888226463874b23836dd481f74
4
+ data.tar.gz: e9787a25ee371a1f9c5918c49cab30c89d6fb375ca1e6fffc7b444bc5dc5f7e1
5
5
  SHA512:
6
- metadata.gz: 87f463a89c2158edfce7b556e3b824a6215646c6581947c434df8e7289f2e150a986db1750d5336b9266b7aee768f4000903271472575edcb90008862071818b
7
- data.tar.gz: 5787421c7c331be9f0adc25ae01587a88ae8c78786420113aa813a9bbddc4ea755655501add2a7afc0400c03d5f9bdfb041958c5ebc61815981c0dac084296fb
6
+ metadata.gz: 23436f8664e13b44f71d5abb2b7b29a0a309e76880503c6ac68c19e1258d3e0dd73919f4b407f0dcfb3fe04dfeea0a350c0fcc967c2fee13085a69aa71992084
7
+ data.tar.gz: 9869c25e459212cbff34f11e0cadcc985fff6e97bfad5012c091a9c594dd9a58ba2bc4afb7fed50c089cbe943a3adb9528968e80df01803869709508aaf9d218
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Mechanize CHANGELOG
2
2
 
3
+ ## 2.11.0 / 2024-07-18
4
+
5
+ * The `accept-charset` header is no longer sent. In early versions of Mechanize, circa 2007, this was a common header but now no modern browser sends it, and servers are instructed to ignore it. See #646 for an example of a server that is confused by its presence. (#647) @flavorjones
6
+
7
+
3
8
  ## 2.10.1 / 2024-06-12
4
9
 
5
10
  * Improve page encoding error recovery on pages with broken encoding when used with libxml2 >= 2.12.0. (#644) @flavorjones
@@ -581,7 +581,6 @@ class Mechanize::HTTP::Agent
581
581
  end
582
582
 
583
583
  def request_language_charset request
584
- request['accept-charset'] = 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
585
584
  request['accept-language'] = 'en-us,en;q=0.5'
586
585
  end
587
586
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class Mechanize
3
- VERSION = "2.10.1"
3
+ VERSION = "2.11.0"
4
4
  end
@@ -576,8 +576,8 @@ class TestMechanizeHttpAgent < Mechanize::TestCase
576
576
  def test_request_language_charset
577
577
  @agent.request_language_charset @req
578
578
 
579
- assert_equal 'en-us,en;q=0.5', @req['accept-language']
580
- assert_equal 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', @req['accept-charset']
579
+ assert_equal('en-us,en;q=0.5', @req['accept-language'])
580
+ assert_nil(@req['accept-charset'])
581
581
  end
582
582
 
583
583
  def test_request_referer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mechanize
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.1
4
+ version: 2.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2024-06-12 00:00:00.000000000 Z
15
+ date: 2024-07-18 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: addressable