diff options
author | valentin v / vvval <[email protected]> | 2019-02-21 15:17:40 +0300 |
---|---|---|
committer | valentin v / vvval <[email protected]> | 2019-02-21 15:17:40 +0300 |
commit | 46a52a8691e83c81a6d12183eddf188b5d15f011 (patch) | |
tree | 5aa06af7b90be39f72559eb8500c591d2bc411c9 /service/http/uploads_test.go | |
parent | 3c1923606c7b5391678b7a760772c8e55f046025 (diff) |
Rename MaxRequest config param
Added MaxRequestSize param, previous one is marked as deprecated,
now they are merged
Diffstat (limited to 'service/http/uploads_test.go')
-rw-r--r-- | service/http/uploads_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/service/http/uploads_test.go b/service/http/uploads_test.go index d452f834..0fbf0e14 100644 --- a/service/http/uploads_test.go +++ b/service/http/uploads_test.go @@ -20,7 +20,7 @@ import ( func TestHandler_Upload_File(t *testing.T) { h := &Handler{ cfg: &Config{ - MaxRequest: 1024, + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{}, @@ -81,7 +81,7 @@ func TestHandler_Upload_File(t *testing.T) { func TestHandler_Upload_NestedFile(t *testing.T) { h := &Handler{ cfg: &Config{ - MaxRequest: 1024, + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{}, @@ -142,7 +142,7 @@ func TestHandler_Upload_NestedFile(t *testing.T) { func TestHandler_Upload_File_NoTmpDir(t *testing.T) { h := &Handler{ cfg: &Config{ - MaxRequest: 1024, + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: "-----", Forbid: []string{}, @@ -203,7 +203,7 @@ func TestHandler_Upload_File_NoTmpDir(t *testing.T) { func TestHandler_Upload_File_Forbids(t *testing.T) { h := &Handler{ cfg: &Config{ - MaxRequest: 1024, + MaxRequestSize: 1024, Uploads: &UploadsConfig{ Dir: os.TempDir(), Forbid: []string{".go"}, |