title: "Cannot include control characters in a HTTP header" using Parse
body: <p>I've implemented a login manager in my game using Parse, and everything worked well.  </p>
  
  <p>So I've added an online leaderboard, but now each time Unity executes a method like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>void UpdateOnlineScore(string id, int newScore)  
  {
      var query = ParseObject.GetQuery("tableName").WhereEqualTo("userid", id);
  
      query.FirstAsync().ContinueWith(t =&gt; {
  
          if (t.IsFaulted)
          {
              Debug.LogWarning("ID not found");
  
              // user stats not found create from scratch 
          } 
          else 
          {
              Debug.Log("Record found");
  
              ParseObject obj = t.Result;
              int savedScore = (int) obj.Get&lt;int&gt;("score");
  
              // check record
          }
      });
  }
  </code></pre>
  
  <p>it stops at <code>query.FirstAsync().ContinueWith(...)</code> throwing this exception:</p>
  
  <blockquote>
    <p><strong>ArgumentException: Cannot include control characters in a HTTP header, either as key or value.</strong><br>
    UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) (at C:/BuildAgent/work/d63dfc6385190b60/Runtime/Export/WWW.cs:98)
    UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2 headers) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/Utils.cs:88)
    Parse.PlatformHooks.GenerateWWWInstance (System.String uri, System.Byte[] bytes, System.Collections.Hashtable headerTable)
    Parse.PlatformHooks+&lt;>c__DisplayClass30+&lt;>c__DisplayClass36.b__29 ()
    Parse.PlatformHooks+d__3c.MoveNext ()
    UnityEngine.Debug:LogException(Exception)
    Parse.d__3c:MoveNext()</p>
  </blockquote>
  
  <p>I have no idea what I'm doing wrong.<br>
  What's strange is that I get this error only debugging on <em>Web Player</em> platform.<br>
  On <em>Windows Standalone</em> it doesn't show up.</p>
  
  <p>Am I missing something? </p>
  
  <p>I'm usign Unity 4.6.0f3.</p>