diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-05 16:36:32 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-05 18:15:35 +0700 |
| commit | cb9e9ecf8466386621954acdafc460ecd0c3f82f (patch) | |
| tree | 56cbe9ee19c93b2eed89247fad735ced6aa494e7 /http_server.go | |
| parent | 20e45fe125803bc7fd0fd079f30bf4c099c8320a (diff) | |
| download | gorankusu-cb9e9ecf8466386621954acdafc460ecd0c3f82f.tar.xz | |
all: replace module "share" with "pakakeh.go"
Diffstat (limited to 'http_server.go')
| -rw-r--r-- | http_server.go | 8 |
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) } |
