mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-24 22:32:23 +00:00
e6903e4e7e
Although we for sure don't support HTTPS we need to recognize it. Nowadays it has become pretty usual to redirect HTTP URLs to HTTPS URLs in order to force privacy (thanks, NSA !). So far our redirection handler didn't recognize an HTTPS URL as abslute URLs and therefore appended it to the curent URL. This led to an endless redirection loop. Now we recognize the HTTPS redirection and generate a minimal document on the fly to inform the user of (for us unrachable) the redirection target. HTML links with HTTPS URLs are treated just like fragment-only links meaning that they get simply completely ignored.
15 lines
295 B
Plaintext
15 lines
295 B
Plaintext
http_http "http://"
|
|
http_https "https://"
|
|
http_200 "200 "
|
|
http_301 "301 "
|
|
http_302 "302 "
|
|
http_get "GET "
|
|
http_10 "HTTP/1.0"
|
|
http_11 "HTTP/1.1"
|
|
http_content_type "content-type: "
|
|
http_location "location: "
|
|
http_host "Host: "
|
|
http_crnl "\r\n"
|
|
http_html ".html"
|
|
http_redirect "<body>Redirect to "
|