diff options
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -77,7 +77,8 @@ xs_dict *http_signed_request_raw(const char *keyid, const char *seckey, | |||
| 77 | 77 | ||
| 78 | /* transfer the original headers */ | 78 | /* transfer the original headers */ |
| 79 | hdrs = xs_dict_new(); | 79 | hdrs = xs_dict_new(); |
| 80 | while (xs_dict_iter(&headers, &k, &v)) | 80 | int c = 0; |
| 81 | while (xs_dict_next(headers, &k, &v, &c)) | ||
| 81 | hdrs = xs_dict_append(hdrs, k, v); | 82 | hdrs = xs_dict_append(hdrs, k, v); |
| 82 | 83 | ||
| 83 | /* add the new headers */ | 84 | /* add the new headers */ |