Re: What C structure contains the HTTP Headers
From: Loren Cahlander <loren.cahlander_at_gmail.com>
Date: Thu, 12 Aug 2010 11:49:30 -0500
On Aug 12, 2010, at 11:12 AM, Hyrum K. Wright wrote:
> On Thu, Aug 12, 2010 at 11:07 AM, C. Michael Pilato <cmpilato_at_collab.net> wrote:
I am trying to make a hack in mod_dav_svn to get some additional headers from a HTTP put.
I have the following XQuery code:
declare function http:put-basic-auth($url, $content, $username, $password, $header) as node(){
let $credentials := concat($username, ':', $password)
Where $header will contain:
<headers>
I want to change the following function in subversion/mod_dav_svn/version.c to get those two headers values and set the values for SVN_PROP_REVISION_LOG and SVN_PROP_REVISION_AUTHOR. Is there a simple way to get the request_rec structure from the svn_fs_txn_t or apr_pool_t structures? Another thing that might help is where is the entry into mod_dav_svn for a HTTP PUT request?
svn_error_t *
logmsg = apr_psprintf(pool,
logval = svn_string_create(logmsg, pool);
/* Notate that this revision was created by autoversioning. (Tools
return SVN_NO_ERROR;
I thank you for replying to me. I will keep code diving until I find the solution.
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.