File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "encoding/base64"
55 "strings"
66 "time"
7- "unicode/utf8"
7+ "unicode/utf8" ,
8+ "fmt "
89)
910
1011const (
@@ -161,6 +162,7 @@ func GetOptimisticBucketPath(url string, method string) string {
161162 if len (part ) >= 64 {
162163 // aW50ZXJhY3Rpb246 is base64 for "interaction:"
163164 if ! strings .HasPrefix (part , "aW50ZXJhY3Rpb246" ) {
165+ fmt .Println ("I don't know what this is!" )
164166 bucket .WriteString ("/!" )
165167 continue
166168 }
@@ -174,13 +176,15 @@ func GetOptimisticBucketPath(url string, method string) string {
174176
175177 decodedPart , err := base64 .StdEncoding .DecodeString (part )
176178 if err != nil {
179+ fmt .Println ("Unknown interaction, why?!" )
177180 interactionId = "Unknown"
178181 } else {
179182 interactionId = strings .Split (string (decodedPart ), ":" )[1 ]
180183 }
181184
182185 bucket .WriteByte ('/' )
183186 bucket .WriteString (interactionId )
187+ fmt .Println ("My bucket is " , bucket .String ())
184188 continue
185189 }
186190
You can’t perform that action at this time.
0 commit comments