kopia lustrzana https://github.com/bugout-dev/moonstream
Default data-source is set to blockchain, so no needs of query param
rodzic
e2f454af5f
commit
e46eb54f91
|
@ -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 {
|
||||||
|
|
Ładowanie…
Reference in New Issue