Fix mod_magnet: enable "request.method" and "request.protocol" in lighty.env (#1308)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2137 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
2b46e3dacc
commit
80be71bd43
1
NEWS
1
NEWS
|
@ -9,6 +9,7 @@ NEWS
|
|||
* Fix mod_extforward to compile with old gcc version (#1591)
|
||||
* Update documentation for #1587
|
||||
* Fix #285 again: read error after SSL_shutdown (thx marton.illes@balabit.com) and clear the error queue before some other calls
|
||||
* Fix mod_magnet: enable "request.method" and "request.protocol" in lighty.env (#1308)
|
||||
|
||||
- 1.4.19 - 2008-03-10
|
||||
|
||||
|
|
|
@ -414,10 +414,16 @@ static buffer *magnet_env_get_buffer(server *srv, connection *con, const char *k
|
|||
case MAGNET_ENV_URI_AUTHORITY: dest = con->uri.authority; break;
|
||||
case MAGNET_ENV_URI_QUERY: dest = con->uri.query; break;
|
||||
|
||||
case MAGNET_ENV_REQUEST_METHOD: break;
|
||||
case MAGNET_ENV_REQUEST_METHOD:
|
||||
buffer_copy_string(srv->tmp_buf, get_http_method_name(con->request.http_method));
|
||||
dest = srv->tmp_buf;
|
||||
break;
|
||||
case MAGNET_ENV_REQUEST_URI: dest = con->request.uri; break;
|
||||
case MAGNET_ENV_REQUEST_ORIG_URI: dest = con->request.orig_uri; break;
|
||||
case MAGNET_ENV_REQUEST_PROTOCOL: break;
|
||||
case MAGNET_ENV_REQUEST_PROTOCOL:
|
||||
buffer_copy_string(srv->tmp_buf, get_http_version_name(con->request.http_version));
|
||||
dest = srv->tmp_buf;
|
||||
break;
|
||||
|
||||
case MAGNET_ENV_UNSET: break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue