Commit 71e50a7
committed
Fix 204 responses, hangs and crashes with REST.
Remove Content-Type and make sure no content is returned by OPTIONS
request in REST interface.
In write_html set the Content-Length when response is not
encoded/compressed (fixes hang due to missing content-length with
unencoded data).
In REST interface do not raise UsageError for invalid api version.
Return json error with proper message. Fixes crash.1 parent 01f34fd commit 71e50a7
File tree
4 files changed
+25
-20
lines changed- roundup
- cgi
- test
4 files changed
+25
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
649 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
650 | 653 | | |
651 | 654 | | |
652 | 655 | | |
| |||
848 | 851 | | |
849 | 852 | | |
850 | 853 | | |
851 | | - | |
| 854 | + | |
852 | 855 | | |
853 | 856 | | |
854 | 857 | | |
| |||
2196 | 2199 | | |
2197 | 2200 | | |
2198 | 2201 | | |
| 2202 | + | |
| 2203 | + | |
2199 | 2204 | | |
2200 | 2205 | | |
2201 | 2206 | | |
| |||
2497 | 2502 | | |
2498 | 2503 | | |
2499 | 2504 | | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
2500 | 2508 | | |
2501 | 2509 | | |
2502 | 2510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2052 | 2052 | | |
2053 | 2053 | | |
2054 | 2054 | | |
2055 | | - | |
| 2055 | + | |
2056 | 2056 | | |
2057 | 2057 | | |
2058 | 2058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2272 | 2272 | | |
2273 | 2273 | | |
2274 | 2274 | | |
2275 | | - | |
2276 | | - | |
2277 | | - | |
2278 | | - | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
2279 | 2278 | | |
2280 | | - | |
2281 | | - | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
2282 | 2284 | | |
2283 | 2285 | | |
2284 | 2286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| |||
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | | - | |
138 | | - | |
| 136 | + | |
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
| |||
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
157 | | - | |
158 | | - | |
| 155 | + | |
159 | 156 | | |
160 | 157 | | |
161 | 158 | | |
| |||
175 | 172 | | |
176 | 173 | | |
177 | 174 | | |
178 | | - | |
179 | | - | |
| 175 | + | |
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
| |||
195 | 191 | | |
196 | 192 | | |
197 | 193 | | |
198 | | - | |
199 | | - | |
| 194 | + | |
200 | 195 | | |
201 | 196 | | |
202 | 197 | | |
| |||
0 commit comments