Re: [go-nuts] How to convert byte slice to UUID?

2017-10-18 Thread paul . h . breslin
We're using github.com/google/uuid I'll post an issue there. Thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com.

[go-nuts] How to convert byte slice to UUID?

2017-10-18 Thread paul . h . breslin
We are passing 16 byte binary UUIDs via grpc and need to be able to cast these from byte slice back to type uuid.UUID. There doesn't seem to be an easy way to do this. It would be nice if the UUID package had a method for this. This works but is there a better way? var b [16]byte

[go-nuts] Re: HTTP server triggers 'Access-Control-Allow-Origin' header contains multiple values error

2016-12-07 Thread paul . h . breslin
Ok, I've since discovered that there's an nginx proxy in front of my service that is adding the header. Sorry for the false alarm. :( Problem resolved. On Tuesday, December 6, 2016 at 5:30:12 PM UTC-5, paul.h@gmail.com wrote: > > We have a simple http service running using the net/http

[go-nuts] Re: HTTP server triggers 'Access-Control-Allow-Origin' header contains multiple values error

2016-12-06 Thread paul . h . breslin
Further to this... it seems the request origin is being "Add"ed to the header sometime after our handler gets called. I tried doing a "Del" on the key before calling "Set" but this made no difference. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] HTTP server triggers 'Access-Control-Allow-Origin' header contains multiple values error

2016-12-06 Thread paul . h . breslin
We have a simple http service running using the net/http package and I tried setting the Access-Control-Allow-Origin header value as in: w.Header().Set("Access-Control-Allow-Origin", "*") and when I do so the client side gets an error: "The 'Access-Control-Allow-Origin' header contains