Hello adg@golang.org, bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/google-api-go-client
10 years, 10 months ago
(2013-06-14 00:54:16 UTC)
#1
https://codereview.appspot.com/10234052/diff/14001/googleapi/googleapi.go File googleapi/googleapi.go (right): https://codereview.appspot.com/10234052/diff/14001/googleapi/googleapi.go#newcode243 googleapi/googleapi.go:243: var isGo11 = true I think this is more ...
10 years, 10 months ago
(2013-06-14 08:43:11 UTC)
#2
LGTM Submit this first, and then we can do the auto-generated files in a separate ...
10 years, 10 months ago
(2013-06-18 19:27:46 UTC)
#6
LGTM
Submit this first, and then we can do the auto-generated files in a
separate CL.
Thanks!
On Tue, Jun 18, 2013 at 11:30 AM, <campoy@google.com> wrote:
>
> https://codereview.appspot.**com/10234052/diff/20001/**
>
googleapi/googleapi.go<https://codereview.appspot.com/10234052/diff/20001/googleapi/googleapi.go>
> File googleapi/googleapi.go (right):
>
> https://codereview.appspot.**com/10234052/diff/20001/**
>
googleapi/googleapi.go#**newcode245<https://codereview.appspot.com/10234052/diff/20001/googleapi/googleapi.go#newcode245>
> googleapi/googleapi.go:245: // SetOpaque sets Opaque in the passed URL
> so RequestURI returns a correct
> On 2013/06/18 03:12:38, bradfitz wrote:
>
>> Maybe:
>>
>
> // SetOpaque sets u.Opaque from u.Path such that HTTP requests to it
>> // don't alter any hex-escaped characters in u.Path.
>>
>
> Done.
>
>
> https://codereview.appspot.**com/10234052/diff/20001/**
>
googleapi/googleapi.go#**newcode246<https://codereview.appspot.com/10234052/diff/20001/googleapi/googleapi.go#newcode246>
> googleapi/googleapi.go:246: // URI avoiding decoding of hex escaped
> characters.
> On 2013/06/18 03:12:38, bradfitz wrote:
>
>> hex-escaped
>>
>
> Done.
>
>
> https://codereview.appspot.**com/10234052/diff/20001/**
>
googleapi/googleapi_test.go<https://codereview.appspot.com/10234052/diff/20001/googleapi/googleapi_test.go>
> File googleapi/googleapi_test.go (right):
>
> https://codereview.appspot.**com/10234052/diff/20001/**
>
googleapi/googleapi_test.go#**newcode16<https://codereview.appspot.com/10234052/diff/20001/googleapi/googleapi_test.go#newcode16>
> googleapi/googleapi_test.go:**16: const reqTmpl = "GET %v
> HTTP/1.1\r\nHost: %v\r\nUser-Agent: Go 1.1 package http\r\n\r\n"
> I did run it, but the GOROOT wasn't correctly set, sorry.
>
> Now fixed and tested with both versions on a short program using %2F
> communicating with Cloud Storage and it works perfectly.
>
>
> https://codereview.appspot.**com/10234052/diff/20001/**
>
googleapi/googleapi_test.go#**newcode20<https://codereview.appspot.com/10234052/diff/20001/googleapi/googleapi_test.go#newcode20>
> googleapi/googleapi_test.go:**20: out string
> On 2013/06/18 03:12:38, bradfitz wrote:
>
>> out is a weird name now. (confusing because it's an input to a
>>
> function which
>
>> makes the desired output) wantRequestURI is long, but accurate, and
>>
> you're not
>
>> using tagged struct literals anyway.
>>
>
> Done.
>
>
> https://codereview.appspot.**com/10234052/diff/20001/**
>
googleapi/googleapi_test.go#**newcode88<https://codereview.appspot.com/10234052/diff/20001/googleapi/googleapi_test.go#newcode88>
> googleapi/googleapi_test.go:**88: q := &http.Request{URL: &u}
> On 2013/06/18 03:12:38, bradfitz wrote:
>
>> s/q/req/ ? or r?
>>
>
> Done.
>
>
https://codereview.appspot.**com/10234052/<https://codereview.appspot.com/102...
>
*** Submitted as https://code.google.com/p/google-api-go-client/source/detail?r=1daa95ee8e04 *** google-api-go-client: set opaque correctly in pre go1.1 versions R=adg, bradfitz, ...
10 years, 10 months ago
(2013-06-18 19:56:10 UTC)
#7
Issue 10234052: code review 10234052: google-api-go-client: set opaque correctly in pre go1.1...
(Closed)
Created 10 years, 10 months ago by francesc
Modified 10 years, 1 month ago
Reviewers:
Base URL:
Comments: 18