<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -294,7 +294,8 @@ header_to_dict(struct client *cli)
         if (strlen(buff2)&gt;0)
         { 
             transform_header_key_to_wsgi_key(buff2, head);
-            value +=1; // remove the first blank char
+            if (*value==' ')
+                 value +=1; // remove the first blank char
             pyval = Py_BuildValue(&quot;s&quot;, value );
             PyDict_SetItemString(pydict, head, pyval);
             Py_DECREF(pyval);</diff>
      <filename>fapws/_evwsgi.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0d7f365093bb84c24db7cfa37203142cc2a7f814</id>
    </parent>
  </parents>
  <author>
    <name>William.os4y</name>
    <email>william.os4y@gmail.com</email>
  </author>
  <url>http://github.com/william-os4y/fapws3/commit/bec1c804aec11d61fe6428cc27040e0e3a3bf12a</url>
  <id>bec1c804aec11d61fe6428cc27040e0e3a3bf12a</id>
  <committed-date>2008-12-28T04:18:26-08:00</committed-date>
  <authored-date>2008-12-28T04:18:26-08:00</authored-date>
  <message>Header handle fix

Fix to correctly handle some exotic html headers without the leading
blank in the value field.

To test this fix, you can try the following:
telnet 127.0.0.1 8080 &lt; test_header
where test_header contains:
&quot;
GET /hello HTTP/1.1
toto: toto value
titi:titi value
&quot;

As a result you'll have &quot;toto value&quot; and &quot;titi value&quot; in the environ
dictionary</message>
  <tree>d393697f263d6c84baf5f0da4e748c4332a33439</tree>
  <committer>
    <name>William.os4y</name>
    <email>william.os4y@gmail.com</email>
  </committer>
</commit>
