+* Sat Sep 10 2005 Andrew McNab <Andrew.McNab@man.ac.uk>
+- Fix problem with attempted upgrades to GridHTTP when
+ already on the HTTP virtual server.
* Fri Sep 9 2005 Andrew McNab <Andrew.McNab@man.ac.uk>
- GRST_DESTINATION_TRANSLATED and GRST_DESTINATION_PERM
environment variables, for use with CGI-based COPY.
*/
{
char *upgradeheader, *upgradespaced, *p;
+ const char *https_env;
/* *** is this a write method or GridHTTP HTTPS->HTTP redirection?
only possible if GridSiteAuth on *** */
(strstr(conf->methods, " PUT ") != NULL))) &&
((upgradeheader = (char *) apr_table_get(r->headers_in,
"Upgrade")) != NULL) &&
- (strcasecmp(apr_table_get(r->subprocess_env, "HTTPS"), "on") == 0))
+ ((https_env=apr_table_get(r->subprocess_env,"HTTPS")) != NULL) &&
+ (strcasecmp(https_env, "on") == 0))
{
upgradespaced = apr_psprintf(r->pool, " %s ", upgradeheader);
if ((*p == ',') || (*p == '\t')) *p = ' ';
// TODO: what if we're pointing at a CGI or some dynamic content???
-
+
if (strstr(upgradespaced, " GridHTTP/1.0 ") != NULL)
return http_gridhttp(r, conf);
}