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

Issue 6820117: CORS support for go-muxer

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by alexv
Modified:
13 years ago
Reviewers:
crhym3, proppy
CC:
appengine-code-reviews+go_googlegroups.com
Visibility:
Public.

Description

Something I'm experimenting with. Full source code is here: http://code.google.com/p/go-muxer/

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -2 lines) Patch
M README.txt View 1 chunk +7 lines, -1 line 0 comments Download
M muxer.go View 4 chunks +38 lines, -1 line 4 comments Download
M muxer_test.go View 1 chunk +30 lines, -0 lines 1 comment Download

Messages

Total messages: 3
alexv
13 years, 1 month ago (2012-11-08 09:58:26 UTC) #1
crhym3
https://codereview.appspot.com/6820117/diff/1/muxer.go File muxer.go (right): https://codereview.appspot.com/6820117/diff/1/muxer.go#newcode62 muxer.go:62: SetCORS(origin, credentials, headers string) Add a better description of ...
13 years, 1 month ago (2012-11-08 11:16:58 UTC) #2
proppy
13 years ago (2012-11-29 23:27:35 UTC) #3
https://codereview.appspot.com/6820117/diff/1/muxer.go
File muxer.go (right):

https://codereview.appspot.com/6820117/diff/1/muxer.go#newcode42
muxer.go:42: CORS_ALLOW_ORIGIN      = "Access-Control-Allow-Origin"
CorsAllowOrigin

https://codereview.appspot.com/6820117/diff/1/muxer.go#newcode95
muxer.go:95: origin      string
you could consider moving this to a different struct and embedding it.

https://codereview.appspot.com/6820117/diff/1/muxer.go#newcode101
muxer.go:101: func (dm *defaultMux) SetCORS(origin, credentials, headers string)
{
Then you could just construct a struct literal for settings all the field at
once.
Sign in to reply to this message.

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