Default data-source is set to blockchain, so no needs of query param

pull/786/head
kompotkot 2023-05-22 12:53:15 +00:00
rodzic e2f454af5f
commit e46eb54f91
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -161,7 +161,7 @@ func extractAccessID(r *http.Request) string {
// Extract data_source from header and query. Query takes precedence over header. // Extract data_source from header and query. Query takes precedence over header.
func extractRequestedDataSource(r *http.Request) string { func extractRequestedDataSource(r *http.Request) string {
requestedDataSource := "database" requestedDataSource := "blockchain"
requestedDataSources := r.Header[strings.Title(NB_DATA_SOURCE_HEADER)] requestedDataSources := r.Header[strings.Title(NB_DATA_SOURCE_HEADER)]
for _, h := range requestedDataSources { for _, h := range requestedDataSources {