Mantis - Resin
Viewing Issue Advanced Details
6443 major always 09-28-21 01:43 11-16-21 11:25
adrianimboden  
nam  
normal  
closed 4.0.63  
duplicate  
none    
none 4.0.66  
0006443: mod_resin does not pass HTTPS correctly
Since 4.0.63, apache2/mod_caucho.c contains the following logic:
```
  if (! strcmp(ap_http_scheme(r), "HTTPS")) {
    cse_write_string(s, CSE_IS_SECURE, "");
  }
```

on our apache server, `ap_http_scheme(r)` returns "https", not the expected "HTTPS", so the CSE_IS_SECURE does not get passed correctly.

Changing the code to this seems to be correct (case insensitive comparison):
```
  if (apr_strnatcmp(ap_http_scheme(r), "https") == 0) {
    cse_write_string(s, CSE_IS_SECURE, "");z
  }
```
duplicate of 0006396closed nam secure apache requests are marked as insecure by mod_caucho 

Notes
(0007000)
adrianimboden   
09-28-21 01:53   
Sorry, I meant this:
```
  if (apr_strnatcasecmp(ap_http_scheme(r), "https") == 0) {
    cse_write_string(s, CSE_IS_SECURE, "");
  }
```