browser-wpadebug: Send HTTP response with HTTP/1.1 header
HTTP response was previously sent as a plaintext without the HTTP header on port 12345. By default Android webview/Chrome assumes plaintext as HTTP/0.9 data. Android webview/Chrome has removed support of HTTP/0.9 request/response on non-standard ports, i.e., other than port 80. This results in error while opening URL 'http://localhost:12345/'. Fix this by prefixing the HTTP response with the HTTP/1.1 header. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
ee4b99e741
commit
5db32adc99
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ static void http_req(void *ctx, struct http_request *req)
|
||||||
eloop_terminate();
|
eloop_terminate();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wpabuf_put_str(resp, "User input completed");
|
wpabuf_put_str(resp, "HTTP/1.1\r\n\r\nUser input completed");
|
||||||
|
|
||||||
if (done) {
|
if (done) {
|
||||||
eloop_cancel_timeout(browser_timeout, NULL, NULL);
|
eloop_cancel_timeout(browser_timeout, NULL, NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue