https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112018-12-10T23:54:18ZRuby Issue Tracking SystemRuby master - Bug #15394: Ruby adds unexpected HTTP header value when using symbol keyhttps://bugs.ruby-lang.org/issues/15394?journal_id=755622018-12-10T23:54:18Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r66319.</p>
<hr>
<p>Preserve HTTP header key as string [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Ruby adds unexpected HTTP header value when using symbol key (Closed)" href="https://bugs.ruby-lang.org/issues/15394">#15394</a>]</p>
<p>to prevent send Host header twice accidentally.</p>
<p>From: Sangyong Sim <a href="mailto:sangyong-sim@cookpad.com" class="email">sangyong-sim@cookpad.com</a></p> Ruby master - Bug #15394: Ruby adds unexpected HTTP header value when using symbol keyhttps://bugs.ruby-lang.org/issues/15394?journal_id=755632018-12-10T23:55:44Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>Sounds reasonable.<br>
I merged your patch with replacing <code>to_s</code> by <code>to_str</code> because <code>to_s</code> is too loose for the original code<br>
which accepts only <code>key</code> which receives <code>downcase</code> method.<br>
thanks!</p> Ruby master - Bug #15394: Ruby adds unexpected HTTP header value when using symbol keyhttps://bugs.ruby-lang.org/issues/15394?journal_id=755662018-12-11T00:47:42Zshia (Sangyong Sim)
<ul></ul><p>Thanks!!</p>