Closed Bug 1279830 Opened 8 years ago Closed 8 years ago

Add content-type to form submission script responses

Categories

(Testing :: web-platform-tests, defect)

defect
Not set
normal

Tracking

(firefox50 fixed)

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: jgraham, Assigned: jgraham)

Details

Attachments

(1 file)

Otherwise a dialog pops up and badness happens
https://reviewboard.mozilla.org/r/59126/#review56128

::: testing/web-platform/tests/common/form-submission.py:4
(Diff revision 1)
>  def main(request, response):
>      if request.headers.get('Content-Type') == 'application/x-www-form-urlencoded':
>          if request.body == 'foo=bara':
> -            return 'OK'
> +            return ([("Content-Type", "text/plain")], 'OK')

This duplication kinda sucks... Can you put the string in a local and return it with the headers at the end?
Comment on attachment 8762423 [details]
Bug 1279830 - Add a content-type to form-submission script response,

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/59126/diff/1-2/
Comment on attachment 8762423 [details]
Bug 1279830 - Add a content-type to form-submission script response,

https://reviewboard.mozilla.org/r/59126/#review56132
Attachment #8762423 - Flags: review?(Ms2ger) → review+
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d3841e305b11
Add a content-type to form-submission script response, r=Ms2ger
https://hg.mozilla.org/mozilla-central/rev/d3841e305b11
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Assignee: nobody → james
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: