mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-05 12:31:43 -05:00
Correct HTML header termination
Add double \r\n to properly terminate some webcontrol headers Closes #641
This commit is contained in:
@@ -186,7 +186,7 @@ static const char *not_found_response_valid_command =
|
||||
|
||||
static const char *not_found_response_valid_command_raw =
|
||||
"HTTP/1.0 404 Not Valid Command\r\n"
|
||||
"Content-type: text/plain\n\n"
|
||||
"Content-type: text/plain\r\n\r\n"
|
||||
"Not Valid Command\n";
|
||||
|
||||
static const char *bad_method_response_template =
|
||||
@@ -207,7 +207,7 @@ static const char *bad_method_response_template_raw =
|
||||
|
||||
static const char *request_auth_response_template=
|
||||
"HTTP/1.0 401 Authorization Required\r\n"
|
||||
"WWW-Authenticate: Basic realm=\"Motion Security Access\"\r\n";
|
||||
"WWW-Authenticate: Basic realm=\"Motion Security Access\"\r\n\r\n";
|
||||
|
||||
/**
|
||||
* write_nonblock
|
||||
|
||||
Reference in New Issue
Block a user