Skip to content

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

Merged
devfeel merged 3 commits intomasterfrom
develop
Dec 3, 2018
Merged

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

Conversation

@devfeel
Copy link
Owner

@devfeel devfeel commented Dec 3, 2018

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