libpurple/protocols/gg/oauth/oauth-parameter.c

changeset 34232
a5517f235e0f
parent 33349
d4a017428f4d
child 38931
41b4c8bf1d52
equal deleted inserted replaced
34231:8a55830a20b6 34232:a5517f235e0f
86 gg_oauth_parameter_t *p; 86 gg_oauth_parameter_t *p;
87 int len = 0; 87 int len = 0;
88 char *res, *out; 88 char *res, *out;
89 89
90 if (header) 90 if (header)
91 len += strlen("Authorization: OAuth "); 91 len += strlen("OAuth ");
92 92
93 for (p = list; p; p = p->next) { 93 for (p = list; p; p = p->next) {
94 gchar *escaped; 94 gchar *escaped;
95 len += strlen(p->key); 95 len += strlen(p->key);
96 96
112 out = res; 112 out = res;
113 113
114 *out = 0; 114 *out = 0;
115 115
116 if (header) { 116 if (header) {
117 strcpy(out, "Authorization: OAuth "); 117 strcpy(out, "OAuth ");
118 out += strlen(out); 118 out += strlen(out);
119 } 119 }
120 120
121 for (p = list; p; p = p->next) { 121 for (p = list; p; p = p->next) {
122 gchar *escaped; 122 gchar *escaped;

mercurial