Skip to content

HTTP Request with WWWForm fails with error #50

Description

@ryansp

When using a WWWForm in a request, it fails when parsing the headers. This is because it is looking for a KeyValuePair in a hashtable:

foreach ( KeyValuePair<string,string> pair in form.headers )
{
this.AddHeader(pair.Key,pair.Value);
}

Can be fixed by using DictionaryEntry instead:

foreach ( DictionaryEntry entry in form.headers )
{
this.AddHeader(entry.Key.ToString(), entry.Value.ToString());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions