We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24dbe7e commit 9ae5e86Copy full SHA for 9ae5e86
src/conf/conf.go
@@ -29,18 +29,6 @@ func (conf *Conf) readConfig() {
29
for key, val := range content.API {
30
key = "/" + path.Clean(key)
31
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
- // )
44
var v datasize.ByteSize
45
if val.MaxReturnSize == "" {
46
val.MaxReturnSize = "10K"
0 commit comments