andyburke / UnityHTTP

A TcpClient-based HTTP library for Unity.
GNU General Public License v2.0
592 stars 146 forks source link

Cannot convert type `System.Collections.Generic.KeyValuePair<string,string>' to `System.Collections.DictionaryEntry' #40

Open middleJack opened 9 years ago

middleJack commented 9 years ago

Assets/Plugins/UnityHTTP-master/src/Request.cs(80,13): error CS0030: Cannot convert type System.Collections.Generic.KeyValuePair<string,string>' toSystem.Collections.DictionaryEntry'

Fixed it by replacing: foreach ( DictionaryEntry entry in form.headers )

for: foreach ( KeyValuePair<string, string> entry in form.headers )

BTW: Why is this library overwriting JSON class?