Remove question mark from http to https redirects #3

Merged
qbi merged 1 commit from bobidle/webseite-krautspace:http_redirect into main 2024-07-12 16:58:43 +02:00
Contributor

At the moment redirect to https add a question mark at the end of redirected location.

Is there a reason for that?

~ $ curl -I http://kraut.space/
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sun, 07 Jul 2024 10:16:02 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive                                        Location: https://kraut.space/?                               Strict-Transport-Security: max-age=15768000
~ $ curl -I http://kraut.space/anyrequest
HTTP/1.1 301 Moved Permanently
Server: nginx                                                 Date: Sun, 07 Jul 2024 10:19:01 GMT
Content-Type: text/html                                       Content-Length: 162
Connection: keep-alive
Location: https://kraut.space/anyrequest?
Strict-Transport-Security: max-age=15768000

I would remove it, but maybe i miss something important.

At the moment redirect to https add a question mark at the end of redirected location. Is there a reason for that? ``` ~ $ curl -I http://kraut.space/ HTTP/1.1 301 Moved Permanently Server: nginx Date: Sun, 07 Jul 2024 10:16:02 GMT Content-Type: text/html Content-Length: 162 Connection: keep-alive Location: https://kraut.space/? Strict-Transport-Security: max-age=15768000 ``` ``` ~ $ curl -I http://kraut.space/anyrequest HTTP/1.1 301 Moved Permanently Server: nginx Date: Sun, 07 Jul 2024 10:19:01 GMT Content-Type: text/html Content-Length: 162 Connection: keep-alive Location: https://kraut.space/anyrequest? Strict-Transport-Security: max-age=15768000 ``` I would remove it, but maybe i miss something important.
bobidle added 1 commit 2024-07-07 12:20:19 +02:00
qbi approved these changes 2024-07-12 16:58:21 +02:00
qbi merged commit 3426d15a56 into main 2024-07-12 16:58:43 +02:00
Owner

Mir wäre kein Grund bekannt.

Mir wäre kein Grund bekannt.
Sign in to join this conversation.
No reviewers
qbi
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Krautspace/webseite-krautspace#3
No description provided.