Skip to content

Commit b768059

Browse files
committed
Merge branch 'fix/incorrect_response_status_code_captive_portal' into 'master'
fix(http_server): Fixed response status code for temporary redirect Closes IDFGH-16702 See merge request espressif/esp-idf!43061
2 parents db3b757 + 29d1bfb commit b768059

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)