Skip to content
This repository was archived by the owner on Dec 25, 2019. It is now read-only.
This repository was archived by the owner on Dec 25, 2019. It is now read-only.

how decide a valid post request #2

@JohnsonJohnsonYuan

Description

@JohnsonJohnsonYuan

"application/x-www-form-urlencoded;charset=UTF-8" is not treated as post request, simple-http cannot get values.

in RequestExtensions.Form.cs, we only treat ContentType == "application/x-www-form-urlencoded" as a valid post request, maybe we can use IndexOf method to decide?

static bool ParseForm(HttpListenerRequest request, Dictionary<string, string> args)
        {
            if (request.ContentType != "application/x-www-form-urlencoded")
                return false;

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