Skip to content

Commit

Permalink
feat: Use request host as index host
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvduroiu committed Aug 29, 2024
1 parent 439b67f commit 65970cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinecone/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (h *Handler) CreateIndex(w http.ResponseWriter, r *http.Request) {
State: "Ready",
}
}
index.Host = fmt.Sprintf("http://%s:%s", h.Host, h.Port)
index.Host = r.Host
index.Namespaces = make(map[string]map[string]*Vector)

h.Index = &index
Expand Down

0 comments on commit 65970cb

Please sign in to comment.