aboutsummaryrefslogtreecommitdiff
path: root/http_run_handler.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_run_handler.go
parent20e45fe125803bc7fd0fd079f30bf4c099c8320a (diff)
downloadgorankusu-cb9e9ecf8466386621954acdafc460ecd0c3f82f.tar.xz
all: replace module "share" with "pakakeh.go"
Diffstat (limited to 'http_run_handler.go')
-rw-r--r--http_run_handler.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/http_run_handler.go b/http_run_handler.go
index 1fa66d1..29eb8a1 100644
--- a/http_run_handler.go
+++ b/http_run_handler.go
@@ -9,7 +9,7 @@ import (
"io"
"net/http"
- libhttp "github.com/shuLhan/share/lib/http"
+ libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http"
)
// HTTPRunHandler define the function type that will be called when client
@@ -24,7 +24,7 @@ func DefaultHTTPRun() HTTPRunHandler {
var (
logp = `DefaultHTTPRun`
httpcOpts = &libhttp.ClientOptions{
- ServerUrl: rr.Target.BaseURL,
+ ServerURL: rr.Target.BaseURL,
AllowInsecure: true,
}
httpc = libhttp.NewClient(httpcOpts)
@@ -58,7 +58,7 @@ func DefaultHTTPRun() HTTPRunHandler {
var httpRequest *http.Request
- httpRequest, err = httpc.GenerateHttpRequest(
+ httpRequest, err = httpc.GenerateHTTPRequest(
rr.HTTPTarget.Method,
rr.HTTPTarget.Path,
rr.HTTPTarget.RequestType,