Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2967)

Issue 6900055: code review 6900055: goauth2: Use content-type detection to select codec

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by Surma
Modified:
11 years, 4 months ago
Reviewers:
adg, ioe
CC:
adg1, adg, ioe, golang-dev
Visibility:
Public.

Description

goauth2: Use content-type detection to select codec

Patch Set 1 #

Patch Set 2 : diff -r f77b3584c59b https://code.google.com/p/goauth2/ #

Patch Set 3 : diff -r f77b3584c59b https://code.google.com/p/goauth2/ #

Total comments: 6

Patch Set 4 : diff -r f77b3584c59b https://code.google.com/p/goauth2/ #

Total comments: 2

Patch Set 5 : diff -r f77b3584c59b https://code.google.com/p/goauth2/ #

Total comments: 2

Patch Set 6 : diff -r f77b3584c59b https://code.google.com/p/goauth2/ #

Patch Set 7 : diff -r f77b3584c59b https://code.google.com/p/goauth2/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -10 lines) Patch
M oauth/oauth.go View 1 2 3 4 5 6 3 chunks +23 lines, -3 lines 0 comments Download
M oauth/oauth_test.go View 1 2 3 4 4 chunks +17 lines, -7 lines 0 comments Download

Messages

Total messages: 15
Surma
Hello adg@google.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/goauth2/
11 years, 4 months ago (2012-12-08 20:55:26 UTC) #1
Surma
I apologize for somehow CC'ing golang-dev. I have no idea how that happend.
11 years, 4 months ago (2012-12-08 20:58:38 UTC) #2
adg1
It's entirely appropriate. On 9 December 2012 07:58, <surma@surmair.de> wrote: > I apologize for somehow ...
11 years, 4 months ago (2012-12-10 00:39:58 UTC) #3
adg
https://codereview.appspot.com/6900055/diff/5001/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/6900055/diff/5001/oauth/oauth.go#newcode254 oauth/oauth.go:254: req.Header.Set("Authorization", "Bearer "+t.AccessToken) I forgot about this header. Does ...
11 years, 4 months ago (2012-12-11 06:32:22 UTC) #4
adg
https://codereview.appspot.com/6900055/diff/5001/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/6900055/diff/5001/oauth/oauth.go#newcode296 oauth/oauth.go:296: content := strings.Split(r.Header.Get("Content-Type"), ";") content := strings.Split(r.Header.Get("Content-Type"), ";")[0] https://codereview.appspot.com/6900055/diff/5001/oauth/oauth.go#newcode297 ...
11 years, 4 months ago (2012-12-11 06:33:33 UTC) #5
Surma
Hello adg@google.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 4 months ago (2012-12-11 13:12:43 UTC) #6
Surma
https://codereview.appspot.com/6900055/diff/5001/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/6900055/diff/5001/oauth/oauth.go#newcode254 oauth/oauth.go:254: req.Header.Set("Authorization", "Bearer "+t.AccessToken) > Does Facebook accept "Bearer" headers? ...
11 years, 4 months ago (2012-12-11 13:13:39 UTC) #7
adg
https://codereview.appspot.com/6900055/diff/11002/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/6900055/diff/11002/oauth/oauth.go#newcode308 oauth/oauth.go:308: b.Access = vals.Get("access_token") what about the refresh token? https://codereview.appspot.com/6900055/diff/11002/oauth/oauth_test.go ...
11 years, 4 months ago (2012-12-12 02:22:41 UTC) #8
Surma
Hello adg@google.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 4 months ago (2012-12-13 13:18:18 UTC) #9
adg
LGTM
11 years, 4 months ago (2012-12-14 01:23:23 UTC) #10
ioe
https://codereview.appspot.com/6900055/diff/18001/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/6900055/diff/18001/oauth/oauth.go#newcode296 oauth/oauth.go:296: content := strings.Split(r.Header.Get("Content-Type"), ";")[0] What about using the ParseMediaType ...
11 years, 4 months ago (2012-12-15 02:36:51 UTC) #11
Surma
https://codereview.appspot.com/6900055/diff/18001/oauth/oauth.go File oauth/oauth.go (right): https://codereview.appspot.com/6900055/diff/18001/oauth/oauth.go#newcode296 oauth/oauth.go:296: content := strings.Split(r.Header.Get("Content-Type"), ";")[0] On 2012/12/15 02:36:51, ioe wrote: ...
11 years, 4 months ago (2012-12-15 08:13:27 UTC) #12
Surma
Hello adg@google.com, adg@golang.org, nightlyone@googlemail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 4 months ago (2012-12-15 08:13:57 UTC) #13
ioe
LGTM
11 years, 4 months ago (2012-12-15 08:21:13 UTC) #14
adg
11 years, 4 months ago (2012-12-16 22:12:06 UTC) #15
*** Submitted as https://code.google.com/p/goauth2/source/detail?r=f3b3146d6c91
***

goauth2: Use content-type detection to select codec

R=adg, adg, nightlyone
CC=golang-dev
https://codereview.appspot.com/6900055

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b