1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 23:40:55 +00:00
Commit Graph

58 Commits

Author SHA1 Message Date
jianzhiyao
8160059182 big size file lead to memory leak 2020-06-16 14:56:58 +08:00
jianzhiyao
c265f6e49c add comment 2020-06-02 20:02:58 +08:00
jianzhiyao
690e91e1b6 static file module:make cache file size and cache file numbers configurable 2020-06-02 18:22:47 +08:00
jianzhiyao
9fda81b7f3 modify static cache total size about 100m 2020-05-09 18:24:14 +08:00
jianzhiyao
4b12e053b7 fix 2020-05-09 17:58:10 +08:00
jianzhiyao
0307c8b110 set static file cahce limit:file size & file count 2020-05-09 17:57:00 +08:00
jianzhiyao
b28d5e2716 fix bug:static canot real hit cache
opt:reduce risk of memory leak with lru cache
2020-05-08 17:10:19 +08:00
dingyuanhong
dff9c8f5fa fix / can use dynamic directory 2018-10-01 15:16:35 +08:00
Amit Yadav
98a3cda260 Fix Unexpected EOF bug in staticfile 2018-05-07 13:51:05 +05:30
Faissal Elamraoui
bf6bd6b292 Fixes #2587
Fixes warnings and errors raised by gometalinter and gosimple.
2017-04-23 19:19:05 +02:00
Sergey Lanzman
37c1ffc57a add go simple support 2017-03-17 20:22:20 +02:00
astaxie
a32241e7d3 fix #2142 2016-09-11 21:27:27 +08:00
Maxgis
4b3ed53158 redirect should add query params 2016-07-26 19:54:10 +08:00
Maxgis
6a4ebc67ac merge 2016-07-24 18:01:19 +08:00
Maxgis
33ef34b95d 减少没有必要的代码以及静态前缀前面有/ 2016-07-24 15:29:34 +08:00
JessonChan
98dfecfd8a change beego log function to logs function 2016-03-24 17:39:29 +08:00
youngsterxyf
9aa2e5b575 fix issue#1787: The cause is that if the url is /m,and we set beego.BConfig.WebConfig.DirectoryIndex = true, then it should redirect to /m/ 2016-03-13 21:39:26 +08:00
JessonChan
226e54e0d8 static file map race bug fixed 2016-03-04 10:54:54 +08:00
astaxie
f925bb9058 golint all the files 2016-01-18 00:18:21 +08:00
Vitaly Velikodny
48fd9675ad Refactoring: Move dev & prod runmodes to const 2015-12-29 21:32:37 +03:00
astaxie
f70f338025 use sync.Pool to reuse Context 2015-12-10 21:59:54 +08:00
astaxie
be60f47488 Merge pull request #1455 from nkbai/develop
windows下静态文件映射找不到问题以及 grace init延后
2015-12-09 23:44:45 +08:00
astaxie
d1bba02958 refact beego config 2015-12-09 23:35:04 +08:00
nkbai
82e0105d22 Revert "windows下静态文件映射找不到问题,"
windows下路径需要filepath.ToSlash

This reverts commit 2c8cb5693e.
2015-12-04 23:15:06 +08:00
nkbai
ff0762cc19 Merge remote-tracking branch 'upstream/develop' into develop 2015-12-03 15:50:21 +08:00
nkbai
2c8cb5693e windows下静态文件映射找不到问题,
path.Clean和filepath.Clean是有区别的
2015-11-27 12:10:39 +08:00
JessonChan
9170b91075 go style format (remove the blank after comments) 2015-11-21 08:46:19 +08:00
JessonChan
5d01afe3a6 isOk to check whether the file is latest 2015-11-16 14:05:05 +08:00
JessonChan
d963bb79bd avoid map-lock delete 2015-11-16 10:31:27 +08:00
JessonChan
214030fad4 bytes reader replace string reader 2015-11-12 11:44:29 +08:00
JessonChan
f8db8ae9c3 add some comments 2015-11-12 10:48:36 +08:00
JessonChan
d2c60619fa new static file support code 2015-11-11 16:22:40 +08:00
JessonChan
8603127c81 beego package file path rewrite 2015-11-10 13:10:42 +08:00
JessonChan
3872c48349 accept encoding refactor and bug fixed 2015-11-10 10:55:47 +08:00
JessonChan
860568cb6c modified as astaxie reviews
https://github.com/astaxie/beego/pull/1376
2015-11-06 18:51:53 +08:00
JessonChan
d4f3dfd527 return when find static path 2015-09-22 14:15:41 +08:00
JessonChan
9c17f73489 code refactor 2015-09-22 13:48:34 +08:00
JessonChan
4995f91547 code refactor 2015-09-22 13:46:20 +08:00
JessonChan
dc38b324e0 code bug fixed 2015-09-22 12:19:31 +08:00
astaxie
95ef4c7136 server index.html in beego with ServeContent 2015-09-21 23:56:24 +08:00
astaxie
eb85e8e328 path.Clean can't clean window separate .."
"
2015-09-20 19:59:30 +08:00
astaxie
8615f875f8 make golint happy staticfile.go 2015-09-08 22:07:44 +08:00
astaxie
0207caab6f keep the shortname for logs info/warn/debug 2015-06-15 20:44:14 +08:00
astaxie
3aceaf8838 error support controller 2015-02-26 23:34:43 +08:00
astaxie
31e6133413 beego: improve static file index.html simple code 2014-10-01 08:57:10 +08:00
astaxie
f5f3395560 update the isdir 2014-09-24 14:48:08 +08:00
astaxie
7e060e6e5c fix the static file dir 2014-09-23 00:03:47 +08:00
astaxie
727d2f9ea1 fix not found when has mulit static dir
robot &robots
2014-09-22 23:44:50 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
astaxie
474a16a7a0 beego: improve the static file server 2014-08-04 15:31:27 +08:00