mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 20:33:55 +00:00
Estimated hours taken: 1 Fix a few problems in the Mercury cgi library. extras/cgi/cgi.m: Add cgi__maybe_get_form which processes forms if they are called using POST, otherwise it will return "no". This allows the form to handle the error itself, perhaps by giving the input form. Also fix a bug in printing the error message -- the content type must be set even for error messages.