<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - XHR Remove Headers"
   href="https://bugs.webkit.org/show_bug.cgi?id=160432#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - XHR Remove Headers"
   href="https://bugs.webkit.org/show_bug.cgi?id=160432">bug 160432</a>
              from <span class="vcard"><a class="email" href="mailto:marc&#64;rupy.se" title="marc&#64;rupy.se">marc&#64;rupy.se</a>
</span></b>
        <pre>Ok, so how can I submit a pull request?

I just need this edit in class XMLHttpRequest.cpp and method XMLHttpRequest::setRequestHeader:

if(m_sameOriginRequest &amp;&amp; value == null)
   m_requestHeaders.remove(name)

before this comment:

// A privileged script (e.g. a Dashboard widget) can set any headers.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>