Handle FF sending bad search suggestion param
Occasionally, Firefox will send the search suggestion string to the server without a mimetype, resulting in the suggestion only appearing in Flask's `request.data` field. This field is typically not used for parsing arguments, as the documentation states: Contains the incoming request data as string in case it came with a mimetype Flask does not handle. This fix captures the bytes object sent to the server and parses it into a normal query to be used in forming suggestions.pull/139/head^2
parent
7a61220aa5
commit
933ce7e068
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue