Skip to content

Commit fae18d8

Browse files
committed
updare and relocate a comment
1 parent 2d0ba90 commit fae18d8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_mig_wsgi-bin_migwsgi.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ def instrumented_format_output(
104104
start_obj_idx = next((i for i, obj in enumerate(out_obj) if obj['object_type'] == 'start'))
105105
insertion_idx = start_obj_idx
106106

107+
# FIXME: format_output() is sensitive to ordering and MUST see a title object _before_
108+
# anything else otherwise the preamble ends up written above the header and thus
109+
# an invalid HTML page is served.
107110
insertion_idx += 1
108111
out_obj.insert(insertion_idx, {
109112
'object_type': 'title',
@@ -113,13 +116,6 @@ def instrumented_format_output(
113116
'script': {},
114117
})
115118

116-
# FIXME: format_output() will write the header _before_ the preamble unless there some
117-
# other non-special output object prior to it.
118-
# insertion_idx += 1
119-
# out_obj.insert(insertion_idx, {
120-
# 'object_type': '__FORCEPREAMBLE__',
121-
# })
122-
123119
insertion_idx += 1
124120
out_obj.insert(insertion_idx, {
125121
'object_type': 'header',

0 commit comments

Comments
 (0)