aboutsummaryrefslogtreecommitdiff
path: root/http_server.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-05 16:36:32 +0700
committerShulhan <ms@kilabit.info>2024-03-05 18:15:35 +0700
commitcb9e9ecf8466386621954acdafc460ecd0c3f82f (patch)
tree56cbe9ee19c93b2eed89247fad735ced6aa494e7 /http_server.go
parent20e45fe125803bc7fd0fd079f30bf4c099c8320a (diff)
downloadgorankusu-cb9e9ecf8466386621954acdafc460ecd0c3f82f.tar.xz
all: replace module "share" with "pakakeh.go"
Diffstat (limited to 'http_server.go')
-rw-r--r--http_server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/http_server.go b/http_server.go
index 3c0a77f..94dfaf2 100644
--- a/http_server.go
+++ b/http_server.go
@@ -8,8 +8,8 @@ import (
"fmt"
"net/http"
- libhttp "github.com/shuLhan/share/lib/http"
- "github.com/shuLhan/share/lib/memfs"
+ libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
)
// List of HTTP APIs.
@@ -272,7 +272,7 @@ func (gorankusu *Gorankusu) apiAttackHTTPCancel(_ *libhttp.EndpointRequest) (res
}
func (gorankusu *Gorankusu) apiAttackResultDelete(epr *libhttp.EndpointRequest) (resbody []byte, err error) {
- name := epr.HttpRequest.Form.Get(paramNameName)
+ name := epr.HTTPRequest.Form.Get(paramNameName)
if len(name) == 0 {
return nil, errInvalidParameter(paramNameName, name)
}
@@ -293,7 +293,7 @@ func (gorankusu *Gorankusu) apiAttackResultDelete(epr *libhttp.EndpointRequest)
}
func (gorankusu *Gorankusu) apiAttackResultGet(epr *libhttp.EndpointRequest) (resbody []byte, err error) {
- name := epr.HttpRequest.Form.Get(paramNameName)
+ name := epr.HTTPRequest.Form.Get(paramNameName)
if len(name) == 0 {
return nil, errInvalidParameter(paramNameName, name)
}