Skip to content

Cannot send a redirect with a Location header #6

Description

@stcarrez

After a POST it is often necessary to use a redirect to another location. For a simple form submission, this is a best practice to avoid problems after the form is submitted.

A redirect needs either a 302 or 307 with a Location header.

One way to do it could be to add:

function Location (This : Response) return String;

and to handle that new response function in the Respond procedure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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