Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-meshproxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-meshproxy
Commits
9ca2b657
Commit
9ca2b657
authored
Mar 11, 2022
by
CHENGHAO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
dba06cf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
.beagle.yml
.beagle.yml
+8
-8
src/handler/proxyhandler.go
src/handler/proxyhandler.go
+6
-2
No files found.
.beagle.yml
View file @
9ca2b657
...
@@ -30,7 +30,7 @@ pipeline:
...
@@ -30,7 +30,7 @@ pipeline:
base
:
registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12
base
:
registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12
dockerfile
:
build/dockerfile
dockerfile
:
build/dockerfile
repo
:
wod/apaas-meshproxy
repo
:
wod/apaas-meshproxy
version
:
v3.0.
2
version
:
v3.0.
3
channel
:
alpha
channel
:
alpha
args
:
"
TARGETOS=linux,TARGETARCH=amd64"
args
:
"
TARGETOS=linux,TARGETARCH=amd64"
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
...
@@ -47,8 +47,8 @@ pipeline:
...
@@ -47,8 +47,8 @@ pipeline:
dns
:
223.5.5.5
dns
:
223.5.5.5
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
2
-alpha
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
3
-alpha
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
2
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
3
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
secrets
:
secrets
:
-
source
:
REGISTRY_USER_ALIYUN
-
source
:
REGISTRY_USER_ALIYUN
...
@@ -63,7 +63,7 @@ pipeline:
...
@@ -63,7 +63,7 @@ pipeline:
dns
:
223.5.5.5
dns
:
223.5.5.5
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
2
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
3
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
secrets
:
secrets
:
...
@@ -83,7 +83,7 @@ pipeline:
...
@@ -83,7 +83,7 @@ pipeline:
base
:
registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12-arm64
base
:
registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12-arm64
dockerfile
:
build/dockerfile
dockerfile
:
build/dockerfile
repo
:
wod/apaas-meshproxy
repo
:
wod/apaas-meshproxy
version
:
"
v3.0.
2
"
version
:
"
v3.0.
3
"
channel
:
alpha-arm64
channel
:
alpha-arm64
args
:
"
TARGETOS=linux,TARGETARCH=arm64"
args
:
"
TARGETOS=linux,TARGETARCH=arm64"
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
...
@@ -100,8 +100,8 @@ pipeline:
...
@@ -100,8 +100,8 @@ pipeline:
dns
:
223.5.5.5
dns
:
223.5.5.5
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
2
-alpha-arm64
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
3
-alpha-arm64
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
2
-arm64
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
3
-arm64
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
secrets
:
secrets
:
-
source
:
REGISTRY_USER_ALIYUN
-
source
:
REGISTRY_USER_ALIYUN
...
@@ -116,7 +116,7 @@ pipeline:
...
@@ -116,7 +116,7 @@ pipeline:
dns
:
223.5.5.5
dns
:
223.5.5.5
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
2
-arm64
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
3
-arm64
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0-arm64
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0-arm64
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
secrets
:
secrets
:
...
...
src/handler/proxyhandler.go
View file @
9ca2b657
...
@@ -177,10 +177,12 @@ func Proxy(c *gin.Context) {
...
@@ -177,10 +177,12 @@ func Proxy(c *gin.Context) {
reqURL
:=
testutils
.
ParseURI
(
proxyData
.
ReqUrl
)
reqURL
:=
testutils
.
ParseURI
(
proxyData
.
ReqUrl
)
fmt
.
Println
(
reqURL
)
fmt
.
Println
(
reqURL
)
if
reqURL
.
RawQuery
==
""
{
if
reqURL
.
RawQuery
==
""
{
reqURL
.
RawQuery
=
c
.
Request
.
URL
.
RawQuery
//reqURL.RawQuery = c.Request.URL.RawQuery
reqURL
.
RawQuery
=
c
.
Request
.
URL
.
Query
()
.
Encode
()
}
else
{
}
else
{
if
c
.
Request
.
URL
.
RawQuery
!=
""
{
if
c
.
Request
.
URL
.
RawQuery
!=
""
{
oldQ
:=
c
.
Request
.
URL
.
Query
()
//oldQ := c.Request.URL.Query()
oldQ
:=
reqURL
.
Query
()
newQ
:=
c
.
Request
.
URL
.
Query
()
newQ
:=
c
.
Request
.
URL
.
Query
()
for
k
,
v
:=
range
newQ
{
for
k
,
v
:=
range
newQ
{
if
len
(
v
)
>
1
{
if
len
(
v
)
>
1
{
...
@@ -198,6 +200,8 @@ func Proxy(c *gin.Context) {
...
@@ -198,6 +200,8 @@ func Proxy(c *gin.Context) {
}
}
}
}
reqURL
.
RawQuery
=
oldQ
.
Encode
()
reqURL
.
RawQuery
=
oldQ
.
Encode
()
}
else
{
reqURL
.
RawQuery
=
reqURL
.
Query
()
.
Encode
()
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment