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
460 B
C
15 lines
460 B
C
extern const char http_http[8];
|
|
extern const char http_https[9];
|
|
extern const char http_200[5];
|
|
extern const char http_301[5];
|
|
extern const char http_302[5];
|
|
extern const char http_get[5];
|
|
extern const char http_10[9];
|
|
extern const char http_11[9];
|
|
extern const char http_content_type[15];
|
|
extern const char http_location[11];
|
|
extern const char http_host[7];
|
|
extern const char http_crnl[3];
|
|
extern const char http_html[6];
|
|
extern const char http_redirect[19];
|