Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

code converter not found (UTF-8 to UTF-8,) #180

Closed
charlesmeyer101 opened this Issue · 5 comments

2 participants

@charlesmeyer101

I'm a newbie to Mechanize so I hope this problem is not just user error. Mechanize is not following a hidden redirect page though 'follow_meta_refresh' is set to true. To get around this I am trying to submit the form on the hidden redirect page. This results in the following error.

/Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/util.rb:47:in `encode': code converter not found (UTF-8 to UTF-8,) (Encoding::ConverterNotFoundError)
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/util.rb:47:in `encode_to'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/util.rb:33:in `from_native_charset'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:198:in `from_native_charset'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:192:in `block in proc_query'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:191:in `map'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:191:in `proc_query'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:248:in `block in build_query'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:247:in `each'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:247:in `build_query'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:265:in `request_data'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize.rb:1026:in `post_form'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize.rb:426:in `submit'
    from /Users/Charles/.rvm/gems/ruby-1.9.2-p290/gems/mechanize-2.1/lib/mechanize/form.rb:178:in `submit'
    from mech_test.rb:30:in `<main>'

The HTML on the page looks something like this

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT LANGUAGE="javascript" type="text/javascript" src="/Includes/Popups.js"></SCRIPT>
</HEAD>
<BODY>
<P>&nbsp;</P>
<div id="frmElement" style="position:absolute;" align="bottom">
<table align="center" ID="Table1">
<tr><td align="center" height="2000"></td></tr>
<tr><td align="center">
<form name="BridgeCommand" method="POST" action="https://www.changedthis.net/surprise/bridge.do">
<textarea name="xml" cols="0" rows="0">nI4DP+kSUWBV4il+1HA2JjmsF+lrWauQBbE3iDAUqqOcmMkieR+q3+c6Z9Wo1HIqtHT6BHisucCMGiUyPP+JL/xlPY1n7a6OYAn0D7nNOfUqvG6fMXkN9s7BMv9hT2qAaYi/CGUMETaufKnbkA+KsLeK9Us8mGI4Bt9jzDQfsJFxVAjvQ8R5MJwjOSeQa/yY4Zn0M5aIV7mg5o6etJCGQViM2C8vSzuodT5saJ+eRRUApUW3VD1wRCKMwx6SPiMkXBO6r0HonY/KILWcaJ3/KmF7AuO3pndcc91K9Ka30m80CzljqISZatL+IkKAwmTomZHCEIFPEKfG3OQGJgLaDvFw+6u8RjQU9FXSHhKh8ReSZqA2jkAYMlr7EBzLZE8Xzy/rqR38GWvog6VmYQsi8AFjVQllo0x2sG+wAtCzlV8=</textarea>
</form>
</td></tr>
</table>
</div>
</BODY>
</HTML>

My LANG is set to

LANG=en_US.UTF-8

and I am using ruby-1.9.2-p290 with Mechanize 2.1

Thanks.

@charlesmeyer101

After doing some debugging I believe that the problem is the encoding is in some instances being set to "UTF-8," (note the comma) instead of "UTF-8".

@knu
Owner
knu commented

I suspect the encoding name with the extra comma may have come from the response headers, so we need a closer look at the transaction log.

Can you show us some?

@charlesmeyer101

''' logfile

Logfile created on 2012-01-02 22:32:29 -0800 by logger.rb/25413

I, [2012-01-02T22:32:29.206498 #1398] INFO -- : Net::HTTP::Get: /
D, [2012-01-02T22:32:29.206563 #1398] DEBUG -- : request-header: accept => /
D, [2012-01-02T22:32:29.206602 #1398] DEBUG -- : request-header: user-agent => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22
D, [2012-01-02T22:32:29.206638 #1398] DEBUG -- : request-header: accept-encoding => gzip,deflate,identity
D, [2012-01-02T22:32:29.206672 #1398] DEBUG -- : request-header: accept-charset => ISO-8859-1,utf-8;q=0.7,;q=0.7
D, [2012-01-02T22:32:29.206706 #1398] DEBUG -- : request-header: accept-language => en-us,en;q=0.5
D, [2012-01-02T22:32:29.206748 #1398] DEBUG -- : request-header: host => www.XXXXXXXXXX.com
I, [2012-01-02T22:32:29.285695 #1398] INFO -- : status: Net::HTTPFound 1.1 302 Object moved
D, [2012-01-02T22:32:29.285952 #1398] DEBUG -- : response-header: date => Tue, 03 Jan 2012 06:32:29 GMT
D, [2012-01-02T22:32:29.286086 #1398] DEBUG -- : response-header: p3p => CP=NOI DSP COR NID CUR OUR NOR STA
D, [2012-01-02T22:32:29.286174 #1398] DEBUG -- : response-header: x-powered-by => ASP.NET
D, [2012-01-02T22:32:29.286244 #1398] DEBUG -- : response-header: location => https://www.XXXXXXXXXXX.com/eps/JitLogin.asp
D, [2012-01-02T22:32:29.286314 #1398] DEBUG -- : response-header: content-length => 163
D, [2012-01-02T22:32:29.286385 #1398] DEBUG -- : response-header: content-type => text/html
D, [2012-01-02T22:32:29.286454 #1398] DEBUG -- : response-header: expires => Sat, 01 Jan 1994 08:00:00 GMT
D, [2012-01-02T22:32:29.286524 #1398] DEBUG -- : response-header: cache-control => private, no-cache
D, [2012-01-02T22:32:29.286596 #1398] DEBUG -- : response-header: set-cookie => ASPSESSIONIDASCQQADC=BLIENDLALFEPJPMOCCJHBGFM; path=/, NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660;expires=Tue, 03-Jan-2012 09:57:06 GMT;path=/;httponly
D, [2012-01-02T22:32:29.286832 #1398] DEBUG -- : Read 0 bytes (0 total)
D, [2012-01-02T22:32:29.314275 #1398] DEBUG -- : Read 163 bytes (163 total)
D, [2012-01-02T22:32:29.329223 #1398] DEBUG -- : saved cookie: ASPSESSIONIDASCQQADC=BLIENDLALFEPJPMOCCJHBGFM
D, [2012-01-02T22:32:29.330251 #1398] DEBUG -- : saved cookie: NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
I, [2012-01-02T22:32:29.330865 #1398] INFO -- : follow redirect to: https://www.XXXXXXXXXX.com/eps/JitLogin.asp
I, [2012-01-02T22:32:29.333343 #1398] INFO -- : Net::HTTP::Get: /eps/JitLogin.asp
D, [2012-01-02T22:32:29.333385 #1398] DEBUG -- : request-header: accept => */

D, [2012-01-02T22:32:29.333420 #1398] DEBUG -- : request-header: user-agent => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22
D, [2012-01-02T22:32:29.333454 #1398] DEBUG -- : request-header: accept-encoding => gzip,deflate,identity
D, [2012-01-02T22:32:29.333487 #1398] DEBUG -- : request-header: accept-charset => ISO-8859-1,utf-8;q=0.7,;q=0.7
D, [2012-01-02T22:32:29.333520 #1398] DEBUG -- : request-header: accept-language => en-us,en;q=0.5
D, [2012-01-02T22:32:29.333558 #1398] DEBUG -- : request-header: cookie => ASPSESSIONIDASCQQADC=BLIENDLALFEPJPMOCCJHBGFM; NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
D, [2012-01-02T22:32:29.333592 #1398] DEBUG -- : request-header: host => www.XXXXXXXXXXX.com
I, [2012-01-02T22:32:31.120880 #1398] INFO -- : status: Net::HTTPOK 1.1 200 OK
D, [2012-01-02T22:32:31.121176 #1398] DEBUG -- : response-header: date => Tue, 03 Jan 2012 06:32:31 GMT
D, [2012-01-02T22:32:31.121254 #1398] DEBUG -- : response-header: p3p => CP=NOI DSP COR NID CUR OUR NOR STA
D, [2012-01-02T22:32:31.121323 #1398] DEBUG -- : response-header: x-powered-by => ASP.NET
D, [2012-01-02T22:32:31.121392 #1398] DEBUG -- : response-header: content-type => text/html; charset=UTF-8, text/html
D, [2012-01-02T22:32:31.121474 #1398] DEBUG -- : response-header: content-length => 35263
D, [2012-01-02T22:32:31.121545 #1398] DEBUG -- : response-header: expires => Mon, 31 May 1999 20:30:14 GMT
D, [2012-01-02T22:32:31.121656 #1398] DEBUG -- : response-header: cache-control => private, no-store
D, [2012-01-02T22:32:31.121730 #1398] DEBUG -- : response-header: set-cookie => logOffURL=; path=/; secure, StartPage=%2Feps%2FJitLogin%2Easp%3F; path=/; secure, ServerID=1111; path=/; secure; HttpOnly, SessionKey=3B2566BFAC62EA84A1FA49CAD8D79E83AE9702D82F2566BF; path=/; secure; HttpOnly, NSC%5FPvutjef%2DH2%2DBN%2DIUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660; path=/; secure, NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660;expires=Tue, 03-Jan-2012 09:57:08 GMT;path=/;secure;httponly
D, [2012-01-02T22:32:31.122527 #1398] DEBUG -- : Read 0 bytes (0 total)
D, [2012-01-02T22:32:31.122817 #1398] DEBUG -- : Read 8139 bytes (8139 total)
D, [2012-01-02T22:32:31.149505 #1398] DEBUG -- : Read 8139 bytes (16278 total)
D, [2012-01-02T22:32:31.155087 #1398] DEBUG -- : Read 8139 bytes (24417 total)
D, [2012-01-02T22:32:31.179585 #1398] DEBUG -- : Read 8139 bytes (32556 total)
D, [2012-01-02T22:32:31.179722 #1398] DEBUG -- : Read 1024 bytes (33580 total)
D, [2012-01-02T22:32:31.179799 #1398] DEBUG -- : Read 1683 bytes (35263 total)
D, [2012-01-02T22:32:31.183009 #1398] DEBUG -- : saved cookie: logOffURL=
D, [2012-01-02T22:32:31.183124 #1398] DEBUG -- : saved cookie: StartPage=%2Feps%2FJitLogin%2Easp%3F
D, [2012-01-02T22:32:31.183230 #1398] DEBUG -- : saved cookie: ServerID=1111
D, [2012-01-02T22:32:31.183341 #1398] DEBUG -- : saved cookie: SessionKey=3B2566BFAC62EA84A1FA49CAD8D79E83AE9702D82F2566BF
D, [2012-01-02T22:32:31.183453 #1398] DEBUG -- : saved cookie: NSC%5FPvutjef%2DH2%2DBN%2DIUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
D, [2012-01-02T22:32:31.183818 #1398] DEBUG -- : saved cookie: NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
I, [2012-01-02T22:32:31.197447 #1398] INFO -- : form encoding: UTF-8
D, [2012-01-02T22:32:31.197674 #1398] DEBUG -- : query: "logoutUser=&hid_orgAlias=&txt_EmailAddress_req=XXXXXXXXXXXX&txt_Password_req=XXXXXXX1%21"
I, [2012-01-02T22:32:31.199934 #1398] INFO -- : Net::HTTP::Post: /eps/JitLogin.asp
D, [2012-01-02T22:32:31.199976 #1398] DEBUG -- : request-header: accept => */

D, [2012-01-02T22:32:31.200012 #1398] DEBUG -- : request-header: user-agent => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22
D, [2012-01-02T22:32:31.200047 #1398] DEBUG -- : request-header: accept-encoding => gzip,deflate,identity
D, [2012-01-02T22:32:31.200086 #1398] DEBUG -- : request-header: accept-charset => ISO-8859-1,utf-8;q=0.7,;q=0.7
D, [2012-01-02T22:32:31.200120 #1398] DEBUG -- : request-header: accept-language => en-us,en;q=0.5
D, [2012-01-02T22:32:31.200154 #1398] DEBUG -- : request-header: cookie => ASPSESSIONIDASCQQADC=BLIENDLALFEPJPMOCCJHBGFM; logOffURL=; StartPage=%2Feps%2FJitLogin%2Easp%3F; ServerID=1111; SessionKey=3B2566BFAC62EA84A1FA49CAD8D79E83AE9702D82F2566BF; NSC%5FPvutjef%2DH2%2DBN%2DIUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660; NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
D, [2012-01-02T22:32:31.200187 #1398] DEBUG -- : request-header: host => www.XXXXXXXXX.com
D, [2012-01-02T22:32:31.200225 #1398] DEBUG -- : request-header: referer => https://www.XXXXXXXXXX.com/eps/JitLogin.asp
D, [2012-01-02T22:32:31.200259 #1398] DEBUG -- : request-header: content-type => application/x-www-form-urlencoded
D, [2012-01-02T22:32:31.200297 #1398] DEBUG -- : request-header: content-length => 101
I, [2012-01-02T22:32:31.415771 #1398] INFO -- : status: Net::HTTPFound 1.1 302 Object moved
D, [2012-01-02T22:32:31.416079 #1398] DEBUG -- : response-header: date => Tue, 03 Jan 2012 06:32:31 GMT
D, [2012-01-02T22:32:31.416239 #1398] DEBUG -- : response-header: p3p => CP=NOI DSP COR NID CUR OUR NOR STA
D, [2012-01-02T22:32:31.416308 #1398] DEBUG -- : response-header: x-powered-by => ASP.NET
D, [2012-01-02T22:32:31.416378 #1398] DEBUG -- : response-header: content-type => text/html; charset=UTF-8, text/html
D, [2012-01-02T22:32:31.416448 #1398] DEBUG -- : response-header: location => /sut/bridgeOut.asp?sutGuid=XXXX
D, [2012-01-02T22:32:31.416561 #1398] DEBUG -- : response-header: content-length => 153
D, [2012-01-02T22:32:31.416648 #1398] DEBUG -- : response-header: expires => Mon, 31 May 1999 20:30:14 GMT
D, [2012-01-02T22:32:31.416717 #1398] DEBUG -- : response-header: cache-control => private, no-store
D, [2012-01-02T22:32:31.416790 #1398] DEBUG -- : response-header: set-cookie => NSC%5FPvutjef%2DH2%2DBN%2DIUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660; path=/; secure, SessionKey=3B786A2EBB7A7D33533F49FCFFB989905530C1FF45786A2E; path=/; secure; HttpOnly, ServerID=1111; path=/; secure; HttpOnly, stlogin%5Fname=+; path=/eps; secure, StartPage=%2Feps%2FJitLogin%2Easp%3F; path=/; secure, logOffURL=; path=/; secure, NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660;expires=Tue, 03-Jan-2012 09:57:08 GMT;path=/;secure;httponly
D, [2012-01-02T22:32:31.416983 #1398] DEBUG -- : Read 0 bytes (0 total)
D, [2012-01-02T22:32:31.417161 #1398] DEBUG -- : Read 153 bytes (153 total)
D, [2012-01-02T22:32:31.417992 #1398] DEBUG -- : saved cookie: NSC%5FPvutjef%2DH2%2DBN%2DIUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
D, [2012-01-02T22:32:31.418190 #1398] DEBUG -- : saved cookie: SessionKey=3B786A2EBB7A7D33533F49FCFFB989905530C1FF45786A2E
D, [2012-01-02T22:32:31.418387 #1398] DEBUG -- : saved cookie: ServerID=1111
D, [2012-01-02T22:32:31.418569 #1398] DEBUG -- : saved cookie: stlogin%5Fname=+
D, [2012-01-02T22:32:31.418748 #1398] DEBUG -- : saved cookie: StartPage=%2Feps%2FJitLogin%2Easp%3F
D, [2012-01-02T22:32:31.418936 #1398] DEBUG -- : saved cookie: logOffURL=
D, [2012-01-02T22:32:31.419530 #1398] DEBUG -- : saved cookie: NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
I, [2012-01-02T22:32:31.420252 #1398] INFO -- : follow redirect to: /sut/bridgeOut.asp?sutGuid=XXXX
I, [2012-01-02T22:32:31.425249 #1398] INFO -- : Net::HTTP::Get: /sut/bridgeOut.asp?sutGuid=XXXX
D, [2012-01-02T22:32:31.425315 #1398] DEBUG -- : request-header: accept => */

D, [2012-01-02T22:32:31.425365 #1398] DEBUG -- : request-header: user-agent => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22
D, [2012-01-02T22:32:31.425413 #1398] DEBUG -- : request-header: accept-encoding => gzip,deflate,identity
D, [2012-01-02T22:32:31.425461 #1398] DEBUG -- : request-header: accept-charset => ISO-8859-1,utf-8;q=0.7,*;q=0.7
D, [2012-01-02T22:32:31.425508 #1398] DEBUG -- : request-header: accept-language => en-us,en;q=0.5
D, [2012-01-02T22:32:31.425556 #1398] DEBUG -- : request-header: cookie => ASPSESSIONIDASCQQADC=BLIENDLALFEPJPMOCCJHBGFM; NSC%5FPvutjef%2DH2%2DBN%2DIUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660; SessionKey=3B786A2EBB7A7D33533F49FCFFB989905530C1FF45786A2E; ServerID=1111; StartPage=%2Feps%2FJitLogin%2Easp%3F; logOffURL=; NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
D, [2012-01-02T22:32:31.425609 #1398] DEBUG -- : request-header: host => www.XXXXXXXXXXXX.com
D, [2012-01-02T22:32:31.425662 #1398] DEBUG -- : request-header: referer => https://www.XXXXXXXXXX.com/eps/JitLogin.asp
I, [2012-01-02T22:32:31.691032 #1398] INFO -- : status: Net::HTTPOK 1.1 200 OK
D, [2012-01-02T22:32:31.691291 #1398] DEBUG -- : response-header: date => Tue, 03 Jan 2012 06:32:31 GMT
D, [2012-01-02T22:32:31.691419 #1398] DEBUG -- : response-header: p3p => CP=NOI DSP COR NID CUR OUR NOR STA
D, [2012-01-02T22:32:31.691526 #1398] DEBUG -- : response-header: x-powered-by => ASP.NET
D, [2012-01-02T22:32:31.691641 #1398] DEBUG -- : response-header: connection => close
D, [2012-01-02T22:32:31.691728 #1398] DEBUG -- : response-header: content-type => text/html; charset=UTF-8, text/html
D, [2012-01-02T22:32:31.691797 #1398] DEBUG -- : response-header: expires => Sat, 01 Jan 1994 08:00:00 GMT
D, [2012-01-02T22:32:31.691865 #1398] DEBUG -- : response-header: cache-control => private, no-store
D, [2012-01-02T22:32:31.691946 #1398] DEBUG -- : response-header: set-cookie => logOffURL=; path=/; secure, StartPage=%2Feps%2FJitLogin%2Easp%3F; path=/; secure, ServerID=1111; path=/; secure; HttpOnly, SessionKey=3B786A2EBB7A7D33533F49FCFFB989905530C1FF45786A2E; path=/; secure; HttpOnly, NSC%5FPvutjef%2DH2%2DBN%2DIUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660; path=/; secure, NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660;expires=Tue, 03-Jan-2012 09:57:08 GMT;path=/;secure;httponly
D, [2012-01-02T22:32:31.692128 #1398] DEBUG -- : Read 0 bytes (0 total)
D, [2012-01-02T22:32:31.692294 #1398] DEBUG -- : Read 1111 bytes (1111 total)
D, [2012-01-02T22:32:31.732678 #1398] DEBUG -- : saved cookie: logOffURL=
D, [2012-01-02T22:32:31.732986 #1398] DEBUG -- : saved cookie: StartPage=%2Feps%2FJitLogin%2Easp%3F
D, [2012-01-02T22:32:31.733204 #1398] DEBUG -- : saved cookie: ServerID=1111
D, [2012-01-02T22:32:31.733410 #1398] DEBUG -- : saved cookie: SessionKey=3B786A2EBB7A7D33533F49FCFFB989905530C1FF45786A2E
D, [2012-01-02T22:32:31.733603 #1398] DEBUG -- : saved cookie: NSC%5FPvutjef%2DH2%2DBN%2DIUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
D, [2012-01-02T22:32:31.734207 #1398] DEBUG -- : saved cookie: NSC_Pvutjef-H2-BN-IUUQ=ffffffffaf1c0a5745525d5f4f58455e445a4a423660
I, [2012-01-02T22:32:31.740025 #1398] INFO -- : form encoding: UTF-8,
D, [2012-01-02T22:32:31.741902 #1398] DEBUG -- : from_native_charset: Encoding::ConverterNotFoundError: form encoding: "UTF-8," string: xml
'''

@knu
Owner
knu commented

Seems the page is sending multiple Content-Type header values resulting in a comma separated value.
I fixed the charset extraction method to skip non-token characters like separators and whitespaces defined in RFC2616.
Thanks!

@knu knu closed this
@charlesmeyer101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.