Skip to content

Commit 9ae5e86

Browse files
committed
Remove obsolete lines
1 parent 24dbe7e commit 9ae5e86

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/conf/conf.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ func (conf *Conf) readConfig() {
2929
for key, val := range content.API {
3030
key = "/" + path.Clean(key)
3131

32-
val.SourceType = "url"
33-
if conf.Util.IsLocalPath(val.Source) {
34-
val.Source, _ = conf.Util.AbsPath(val.Source)
35-
val.SourceType = conf.Util.FileOrFolder(val.Source)
36-
}
37-
// if val.SourceType == "url" && val.RequestMethod == "" {
38-
// val.RequestMethod = "get"
39-
// }
40-
// val.RequestMethod = strings.ToUpper(val.RequestMethod)
41-
// val.RequestMethod = conf.Util.RxReplaceAll(
42-
// val.RequestMethod, "^HTTP_", "",
43-
// )
4432
var v datasize.ByteSize
4533
if val.MaxReturnSize == "" {
4634
val.MaxReturnSize = "10K"

0 commit comments

Comments
 (0)