summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-01-06 18:35:38 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2015-04-13 23:34:14 +0100
commit4496726447dd431004ccf872c45db6538df62fc2 (patch)
treec3a3dcc091c79ef76814540aba248d7b646c5afe
parentaab9947e41a1084ead6b8c82082a855656dd3e00 (diff)
downloadlibgdata-4496726447dd431004ccf872c45db6538df62fc2.tar.gz
goa-authorizer: Set Authorization header as "Bearer ..."
Starting with "OAuth..." seems a CnP/leftover from OAuth1 support. RFC 6750 only observes the "Bearer" keyword though. This also seems consistent with GDataOAuth2Authorizer. https://bugzilla.gnome.org/show_bug.cgi?id=742473
-rw-r--r--gdata/gdata-goa-authorizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdata/gdata-goa-authorizer.c b/gdata/gdata-goa-authorizer.c
index 4bfff0fa..1e382688 100644
--- a/gdata/gdata-goa-authorizer.c
+++ b/gdata/gdata-goa-authorizer.c
@@ -314,7 +314,7 @@ gdata_goa_authorizer_add_oauth2_authorization (GDataAuthorizer *authorizer, Soup
return;
}
- authorization = g_string_new ("OAuth ");
+ authorization = g_string_new ("Bearer ");
g_string_append (authorization, priv->access_token);
/* Use replace here, not append, to make sure there's only one "Authorization" header. */