Skip to content

Commit 29d1bfb

Browse files
committed
fix(http_server): Fixed response status code for temporary redirect
Closes #17791
1 parent 9eff487 commit 29d1bfb

File tree

1 file changed

+1
-1
lines changed
  • examples/protocols/http_server/captive_portal/main

1 file changed

+1
-1
lines changed

examples/protocols/http_server/captive_portal/main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static const httpd_uri_t root = {
127127
esp_err_t http_404_error_handler(httpd_req_t *req, httpd_err_code_t err)
128128
{
129129
// Set status
130-
httpd_resp_set_status(req, "302 Temporary Redirect");
130+
httpd_resp_set_status(req, "303 See Other");
131131
// Redirect to the "/" root directory
132132
httpd_resp_set_hdr(req, "Location", "/");
133133
// iOS requires content in the response to detect a captive portal, simply redirecting is not sufficient.

0 commit comments

Comments
 (0)