pulibrary / pulmap

Princeton University Library Geoblacklight application.
Apache License 2.0
8 stars 2 forks source link

add UA agent to lib-solr #802

Open kayiwa opened 5 years ago

kayiwa commented 5 years ago

Could we please add useragent for pulmap's visits to lib-solr?

https://dashboard.signalsciences.net/corps/pu_library/sites/poc_site/requests/5d9ad61c0ee43a72747e34e1

eliotjordan commented 5 years ago

@kayiwa What user agent should we set this to?

I think we can do this in the blacklight config: https://github.com/pulibrary/pulmap/blob/master/config/blacklight.yml#L9

Setting the user agent with the headers option:

:headers => {User-Agent' => 'your_agent'}
kayiwa commented 5 years ago

I'm unqualified to "comment" @eliotjordan the other's are coming in as Faraday FWIW.

eliotjordan commented 5 years ago

"The others" meaning other blacklight applications: Orangelight, Figgy? Is so, we can set that to Faraday, but I'm unsure why Pulmap would be different. It's using the same blacklight config as the other apps.

kayiwa commented 5 years ago

sorry, yes @eliotjordan all other blacklight applications are reporting as Faraday.