| 130 newsn->flags = 0; |
130 newsn->flags = 0; |
| 131 |
131 |
| 132 newsn->handle = newhandle; |
132 newsn->handle = newhandle; |
| 133 |
133 |
| 134 newsn->base_url = cx_strdup_a(newsn->mp->allocator, cx_str(sn->base_url)).ptr; |
134 newsn->base_url = cx_strdup_a(newsn->mp->allocator, cx_str(sn->base_url)).ptr; |
| 135 newsn->auth_prompt = sn->auth_prompt; |
135 |
| 136 newsn->authprompt_userdata = sn->authprompt_userdata; |
|
| 137 newsn->logfunc = sn->logfunc; |
136 newsn->logfunc = sn->logfunc; |
| 138 newsn->get_progress = sn->get_progress; |
|
| 139 newsn->put_progress = sn->put_progress; |
|
| 140 newsn->progress_userdata = sn->progress_userdata; |
|
| 141 |
137 |
| 142 // add to context |
138 // add to context |
| 143 dav_context_add_session(sn->context, newsn); |
139 dav_context_add_session(sn->context, newsn); |
| 144 newsn->context = sn->context; |
140 newsn->context = sn->context; |
| 145 dav_context_ref(sn->context); |
141 dav_context_ref(sn->context); |