Skip to content
Snippets Groups Projects
Commit a9f2fa49 authored by cvictory's avatar cvictory
Browse files

#901 Optimize the memory usage.

parent 11a07860
No related branches found
No related tags found
No related merge requests found
......@@ -640,7 +640,7 @@ func MergeUrl(serviceUrl *URL, referenceUrl *URL) *URL {
for key, value := range referenceUrl.GetParams() {
if v := mergedUrl.GetParam(key, ""); len(v) == 0 {
if len(value) > 0 {
mergedUrl.SetParam(key, value[0])
params[key] = value
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment