Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type *revel.RevelHeader does not support indexing #4

Open
slowkow opened this issue Jan 30, 2018 · 0 comments
Open

type *revel.RevelHeader does not support indexing #4

slowkow opened this issue Jan 30, 2018 · 0 comments

Comments

@slowkow
Copy link

slowkow commented Jan 30, 2018

Thanks for making this package! I'm new to go and revel, and this looks like a nice place to start.

I tried installing your package, but I get some errors. Do you have any tips? Perhaps an update to the revel package broke the baseapp? I'm not sure.

go get github.com/richtr/baseapp/...

# github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers
work/go/src/github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers/status.go:18:51: invalid operation: c.Controller.Request.Header["X-Forwarded-For"] (type *revel.RevelHeader does not support indexing)
# github.com/richtr/baseapp/app/controllers
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:73:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:85:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)

If I setup the config file, ignore the installation error, and try running a test server anyway, I get this:

revel run github.com/richtr/baseapp test

ERROR 09:49:09  revel  build.go:146: # github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers
work/go/src/github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers/status.go:18:51: invalid operation: c.Controller.Request.Header["X-Forwarded-For"] (type *revel.RevelHeader does not support indexing)
# github.com/richtr/baseapp/app/controllers
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:73:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:85:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)
@slowkow slowkow mentioned this issue Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant