From 185d3e19ecdc7182d93bac3a2f052ab1312690b0 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 4 Aug 2022 16:25:50 -0700 Subject: [PATCH] Switch to temporary redirect for cp.local This prevents browsers from caching it. Thanks to MakerMelissa for the suggestion. --- supervisor/shared/web_workflow/web_workflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/shared/web_workflow/web_workflow.c b/supervisor/shared/web_workflow/web_workflow.c index 9e8c32d963..8c86a8c2bd 100644 --- a/supervisor/shared/web_workflow/web_workflow.c +++ b/supervisor/shared/web_workflow/web_workflow.c @@ -575,7 +575,7 @@ static void _reply_redirect(socketpool_socket_obj_t *socket, _request *request, lwip_setsockopt(socket->num, IPPROTO_TCP, TCP_NODELAY, &nodelay, sizeof(nodelay)); const char *hostname = common_hal_mdns_server_get_hostname(&mdns); _send_strs(socket, - "HTTP/1.1 301 Moved Permanently\r\n", + "HTTP/1.1 307 Temporary Redirect\r\n", "Connection: close\r\n", "Content-Length: 0\r\n", "Location: ", NULL);