Skip to content

Add Request.RealIP and route.ServerFile support ''/*filepath' or '/*' - #165

Merged
devfeel merged 3 commits into
masterfrom
develop
Dec 3, 2018
Merged

Add Request.RealIP and route.ServerFile support ''/*filepath' or '/*'#165
devfeel merged 3 commits into
masterfrom
develop

Conversation

@devfeel

@devfeel devfeel commented Dec 3, 2018

Copy link
Copy Markdown
Owner

Version 1.5.9.1

app.HttpServer.ServerFile("/*", "D:/gotmp")
  • update example/main
  • 2018-12-03 15:00

* New Feature: Add Request.RealIP used to returns the first ip from 'X-Forwarded-For' header key, fixed for #164
* New Feature: route.ServerFile support '*filepath' or '/*', to simplify register static file router
* Example:
``` golang
app.HttpServer.ServerFile("/*", "D:/gotmp")
```
* update example/main
* 2018-12-03 15:00
* New Feature: Add Request.RealIP used to returns the first ip from 'X-Forwarded-For' or 'X-Real-IP' header key, fixed for #164
* New Feature: route.ServerFile support '*filepath' or '/*', to simplify register static file router, fixed for #125
* Example:
``` golang
app.HttpServer.ServerFile("/*", "D:/gotmp")
```
* update example/main
* 2018-12-03 15:00
* New Feature: Add Request.RealIP used to returns the first ip from 'X-Forwarded-For' or 'X-Real-IP' header key, fixed for #164
* New Feature: route.ServerFile support '*filepath' or '/*', to simplify register static file router, fixed for #125
* Example:
``` golang
app.HttpServer.ServerFile("/*", "D:/gotmp")
```
* update example/main
* 2018-12-03 15:00
@devfeel
devfeel merged commit cfbd200 into master Dec 3, 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

Successfully merging this pull request may close these issues.

1 participant